rubygem-nokogiri/nokogiri-create-full-tarball.sh
Mamoru TASAKA c6d13d8cb5 1.9.1
2018-12-31 18:00:26 +09:00

28 lines
355 B
Bash

#!/bin/bash
if [ $# -lt 2 ]
then
echo "$0 <name> <version>"
exit 1
fi
set -x
set -e
CURRDIR=$(pwd)
TMPDIRPATH=$(mktemp -d /var/tmp/$1-tar-XXXXXX)
pushd $TMPDIRPATH
git clone https://github.com/sparklemotion/$1.git
pushd $1
git reset --hard v$2
popd
ln -sf $1 $1-$2
tar czf ${CURRDIR}/rubygem-$1-$2-full.tar.gz $1-$2/./
popd
rm -rf $TMPDIRPATH