diff options
author | Jean-Luc Lamadon <jean-luc.lamadon@nokia.com> | 2009-02-19 09:13:07 +0200 |
---|---|---|
committer | Jean-Luc Lamadon <jean-luc.lamadon@nokia.com> | 2009-02-19 09:13:07 +0200 |
commit | 33c7535451c874d52421936b2bdc7224f288a8f6 (patch) | |
tree | 277d9f59b2c50b5421e141fdb0c5b4642be7a70d /tools | |
parent | f072b92258e5e6fd19826804a4ceaac7c82f7d22 (diff) |
Add utility to create release tag
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/add-release-tag | 24 |
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 |