diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-07-18 15:01:03 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-07-18 15:01:03 +0200 |
commit | a89b5ad4b9121bbfa033d87852692a3c8a922e58 (patch) | |
tree | c867cfaf3890af1451b31821fd4ec05f0a540a44 /tag-release | |
parent | 9a7e374e1670b04f506d4d2eecd903c253a8214a (diff) |
Version 0.9.11-rc3
Diffstat (limited to 'tag-release')
-rwxr-xr-x | tag-release | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tag-release b/tag-release new file mode 100755 index 00000000..6038e5a8 --- /dev/null +++ b/tag-release @@ -0,0 +1,27 @@ +#!/bin/bash + +if [ -z $1 ]; then + echo "Please specify a version" + exit +fi + +FULLVERSION=$1 +VERSION=${FULLVERSION/-*/} + +echo "Full version: $FULLVERSION" +echo "Version: $VERSION" + +sed -ine "/^\$version =/ c \$version = '$FULLVERSION'" launch_here.rb +sed -ine "/^\$version ||=/ c \$version ||= '$FULLVERSION'" bin/rbot +sed -ine "/^ s.version =/ c \ s.version = '$VERSION'" Rakefile + +git commit -m "Version $FULLVERSION" -a +git tag -a -m "rbot $FULLVERSION" rbot-$FULLVERSION +rake package +if [ $VERSION != $FULLVERSION ]; then + pushd pkg + mv rbot-$VERSION.gem rbot-$FULLVERSION.gem + mv rbot-$VERSION.tgz rbot-$FULLVERSION.tgz + mv rbot-$VERSION.zip rbot-$FULLVERSION.zip + popd +fi |