summaryrefslogtreecommitdiffstats
path: root/php-league-climate-get-source.sh
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-04-15 14:42:06 +0200
committerRemi Collet <fedora@famillecollet.com>2016-04-15 14:42:06 +0200
commit9be81f1ecc487f18cc14acc51e477d9b541d0ced (patch)
tree88e1b314e443b0db6059806eb7089c523b983f0c /php-league-climate-get-source.sh
parentb3c3e99e4070f7be5ca6961e1be224166edb7591 (diff)
php-league-climate: backport
Diffstat (limited to 'php-league-climate-get-source.sh')
-rwxr-xr-xphp-league-climate-get-source.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/php-league-climate-get-source.sh b/php-league-climate-get-source.sh
index ba71f5d..4ad1051 100755
--- a/php-league-climate-get-source.sh
+++ b/php-league-climate-get-source.sh
@@ -43,6 +43,8 @@ print "GIT_REPO = $GIT_REPO"
print "GIT_DIR = $GIT_DIR"
TEMP_DIR=$(mktemp --dir)
+TAR_FILE=$PWD/${NAME}-${VERSION}-${GIT_COMMIT}.tar.gz
+CMP_FILE=$PWD/composer.json
pushd $TEMP_DIR
print "Cloning git repo..."
@@ -51,6 +53,7 @@ pushd $TEMP_DIR
pushd $GIT_DIR
print "Checking out commit..."
$GIT checkout $GIT_COMMIT
+ cp composer.json $CMP_FILE
popd
TAR_DIR=${GIT_NAME}-${GIT_COMMIT}
@@ -58,7 +61,6 @@ pushd $TEMP_DIR
mv $GIT_DIR $TAR_DIR
- TAR_FILE=`$RPM --eval='%{_sourcedir}'`/${NAME}-${VERSION}-${GIT_COMMIT}.tar.gz
print "TAR_FILE = $TAR_FILE"
[ -e $TAR_FILE ] && rm -f $TAR_FILE