rubygem-cairo/create-cairo-gem.sh
TASAKA Mamoru 779a3c19e8 Update to 1.12.2
- And use git based gem for now to avoid test failure
2012-04-18 18:43:32 +09:00

17 lines
360 B
Bash

#!/bin/sh
set -x
ORIGDIR=$(pwd)
DIR=$(mktemp -p /tmp -d tmp.XXXXXX)
pushd $DIR
git clone https://github.com/rcairo/rcairo.git
cd rcairo
VERSION=$(gem build cairo.gemspec 2>&1 | sed -n -e 's|^.*Version: ||p')
GITHASH=$(git log | head -n 1 | sed -e 's|^.* \(..........\).*|\1|')
cp -p cairo-$VERSION.gem $ORIGDIR/cairo-$VERSION-$GITHASH.gem
popd
rm -rf $DIR