Blame SOURCES/byebug-create-full-tarball.sh

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