summaryrefslogtreecommitdiffstats
path: root/php-punic-get-source.sh
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-11-22 13:57:44 +0100
committerRemi Collet <fedora@famillecollet.com>2016-11-22 13:57:44 +0100
commit01f543c87c84f6334ed9bcb401356893a03fa832 (patch)
tree14d8490d70b5a48df4b07085939bb343df9e9f2b /php-punic-get-source.sh
parent65d859c12ace1313e130f0722c8cb3abd8c2a51a (diff)
php-punic: 1.6.4
Diffstat (limited to 'php-punic-get-source.sh')
-rwxr-xr-xphp-punic-get-source.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/php-punic-get-source.sh b/php-punic-get-source.sh
index ba71f5d..9399d7f 100755
--- a/php-punic-get-source.sh
+++ b/php-punic-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