diff options
-rwxr-xr-x | bin/rbot | 2 | ||||
-rwxr-xr-x | launch_here.rb | 2 | ||||
-rwxr-xr-x | tag-release | 27 |
3 files changed, 29 insertions, 2 deletions
@@ -47,7 +47,7 @@ require 'etc' require 'getoptlong' require 'fileutils' -$version ||= "0.9.11-rc2" +$version ||= '0.9.11-rc3' $version_timestamp ||= 0 $opts = Hash.new diff --git a/launch_here.rb b/launch_here.rb index cf23ea78..dcd7f5e4 100755 --- a/launch_here.rb +++ b/launch_here.rb @@ -8,7 +8,7 @@ puts "Running from #{SCM_DIR}" $:.unshift File.join(SCM_DIR, 'lib') -$version = '0.9.11-rc2' +$version = '0.9.11-rc3' pwd = Dir.pwd begin 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 |