* updating jam-pb packaging to update ruby version

This commit is contained in:
Seth Call 2012-11-18 00:10:53 -06:00
parent dd31335e78
commit 45316d3e48
1 changed files with 13 additions and 0 deletions

View File

@ -10,8 +10,21 @@ bundle gem jampb > /dev/null
# copy over built ruby code
cp src/*.rb jampb/lib/jampb
if [ -z $BUILD_NUMBER ]; then
BUILD_NUMBER="1"
fi
VERSION="0.0.${BUILD_NUMBER}"
pushd jampb > /dev/null
cat > lib/jampb/version.rb << EOF
module Jampb
VERSION = "$VERSION"
end
EOF
# define gemspec
cat >> jampb.gemspec << EOF