summaryrefslogtreecommitdiffstats
path: root/php-doctrine-annotations-get-source.sh
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-05-14 17:58:58 +0200
committerRemi Collet <remi@remirepo.net>2017-05-14 17:58:58 +0200
commit71195395d5d5808978db68a75050f11b9708ea31 (patch)
treeb4275bfcda265e1f5b41f3a5412ef3bcff645b25 /php-doctrine-annotations-get-source.sh
parentd50da2890ae3647550e05a2e0449d5a83caedd39 (diff)
sync with Fedora
Diffstat (limited to 'php-doctrine-annotations-get-source.sh')
-rwxr-xr-xphp-doctrine-annotations-get-source.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/php-doctrine-annotations-get-source.sh b/php-doctrine-annotations-get-source.sh
index e283587..f8f69e8 100755
--- a/php-doctrine-annotations-get-source.sh
+++ b/php-doctrine-annotations-get-source.sh
@@ -37,6 +37,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..."
@@ -45,6 +47,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}
@@ -52,7 +55,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