From 94a479c68355e922ca30ea7c8006de7319680283 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Mon, 10 Nov 2014 16:43:25 +0900 Subject: [PATCH] add missing script --- rspec-related-create-full-tarball.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 rspec-related-create-full-tarball.sh diff --git a/rspec-related-create-full-tarball.sh b/rspec-related-create-full-tarball.sh new file mode 100644 index 0000000..a847c6c --- /dev/null +++ b/rspec-related-create-full-tarball.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +if [ $# -lt 2 ] +then + echo "$0 " + exit 1 +fi + +set -x +set -e + +CURRDIR=$(pwd) + +TMPDIRPATH=$(mktemp -d /var/tmp/rspec-tar-XXXXXX) +pushd $TMPDIRPATH + +git clone https://github.com/rspec/$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