aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJean-Luc Lamadon <jean-luc.lamadon@nokia.com>2009-02-19 09:13:07 +0200
committerJean-Luc Lamadon <jean-luc.lamadon@nokia.com>2009-02-19 09:13:07 +0200
commit33c7535451c874d52421936b2bdc7224f288a8f6 (patch)
tree277d9f59b2c50b5421e141fdb0c5b4642be7a70d /tools
parentf072b92258e5e6fd19826804a4ceaac7c82f7d22 (diff)
Add utility to create release tag
Diffstat (limited to 'tools')
-rwxr-xr-xtools/add-release-tag24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/add-release-tag b/tools/add-release-tag
new file mode 100755
index 00000000..12188b1f
--- /dev/null
+++ b/tools/add-release-tag
@@ -0,0 +1,24 @@
+#! /bin/sh
+
+# add-release-tag -- turn a skeleton source tree that is appropriate for
+# trunk or a branch into a full source tree that is
+# appropriate for a tag.
+#
+# We do this by building a dist tarball as a reference and add all
+# files that end up in that tarball to subversion.
+#
+
+tarname=$1
+version=$2
+
+git checkout -b tmp
+./autogen.sh --enable-gtk-doc
+make
+make dist distdir=$tarname
+
+git add -f `tar tzf $tarname.tar.gz | sed s,^$tarname/,,`
+git commit -m "Complete for distribution."
+git tag -a $version -m "Released $version"
+git push --tags
+git checkout master
+git branch -D tmp