summaryrefslogtreecommitdiffstats
path: root/php-doctrine-orm-get-source.sh
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-07-10 17:47:50 +0200
committerRemi Collet <fedora@famillecollet.com>2016-07-10 17:47:50 +0200
commit792274c85f2bbcfa3331d0367f2c95df65570676 (patch)
treee9e5160b8136958458ab05a4d1a7715b8e06b731 /php-doctrine-orm-get-source.sh
parent01441ed23101d329b5b7439d96265891017413ec (diff)
php-doctrine-orm: 2.4.8 (backported from Fedora)
Diffstat (limited to 'php-doctrine-orm-get-source.sh')
-rwxr-xr-xphp-doctrine-orm-get-source.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/php-doctrine-orm-get-source.sh b/php-doctrine-orm-get-source.sh
index e283587..f8f69e8 100755
--- a/php-doctrine-orm-get-source.sh
+++ b/php-doctrine-orm-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