summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-07-18 15:01:03 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-07-18 15:01:03 +0200
commita89b5ad4b9121bbfa033d87852692a3c8a922e58 (patch)
treec867cfaf3890af1451b31821fd4ec05f0a540a44
parent9a7e374e1670b04f506d4d2eecd903c253a8214a (diff)
Version 0.9.11-rc3
-rwxr-xr-xbin/rbot2
-rwxr-xr-xlaunch_here.rb2
-rwxr-xr-xtag-release27
3 files changed, 29 insertions, 2 deletions
diff --git a/bin/rbot b/bin/rbot
index fd8bc50a..1ac4f3a4 100755
--- a/bin/rbot
+++ b/bin/rbot
@@ -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