summaryrefslogtreecommitdiffstats
path: root/php-di-get-source.sh
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-01-07 08:58:52 +0100
committerRemi Collet <fedora@famillecollet.com>2016-01-07 08:58:52 +0100
commit6e3348eb2bbfcaf6e1bcda15399095f0a83126d4 (patch)
tree5eb3774577caee3cf2d3f6c3f7de0c5c2de68ed7 /php-di-get-source.sh
parentc45127306479f8a3605bbc98c30528674d8a0f1b (diff)
php-di: add backport stuff
Diffstat (limited to 'php-di-get-source.sh')
-rwxr-xr-xphp-di-get-source.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/php-di-get-source.sh b/php-di-get-source.sh
index ba71f5d..48b8385 100755
--- a/php-di-get-source.sh
+++ b/php-di-get-source.sh
@@ -43,6 +43,7 @@ print "GIT_REPO = $GIT_REPO"
print "GIT_DIR = $GIT_DIR"
TEMP_DIR=$(mktemp --dir)
+TAR_FILE=$PWD/${NAME}-${VERSION}-${GIT_COMMIT}.tar.gz
pushd $TEMP_DIR
print "Cloning git repo..."
@@ -58,7 +59,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