You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
489 B
31 lines
489 B
#!/bin/bash
|
|
|
|
if [ $# -lt 1 ]
|
|
then
|
|
echo "$0 <version>"
|
|
exit 1
|
|
fi
|
|
|
|
set -x
|
|
set -e
|
|
|
|
GEMNAME=aruba
|
|
CURRDIR=$(pwd)
|
|
VERSION=$1
|
|
|
|
TMPDIRPATH=$(mktemp -d /var/tmp/${GEMNAME}-tar-XXXXXX)
|
|
pushd $TMPDIRPATH
|
|
|
|
git clone https://github.com/cucumber/${GEMNAME}.git
|
|
pushd ${GEMNAME}
|
|
git reset --hard v${VERSION}
|
|
popd
|
|
|
|
ln -sf ${GEMNAME} ${GEMNAME}-${VERSION}
|
|
tar czf ${CURRDIR}/rubygem-${GEMNAME}-${VERSION}-testsuite.tar.gz \
|
|
${GEMNAME}-${VERSION}/{features,fixtures,spec}
|
|
|
|
popd
|
|
|
|
rm -rf $TMPDIRPATH
|