diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-09-27 07:20:44 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-09-27 07:20:44 +0200 |
commit | 437047123fabbfa31513c9e1ef04d3aa922e3fc9 (patch) | |
tree | e264097da024d332d91c277cbc3491c90fb36fa6 /php-doctrine-dbal-get-source.sh | |
parent | de031e9f5df9327e05e058c52b0e3b955cc5d114 (diff) |
php-doctrine-dbal: 2.5.5 (backported from Fedora)
Diffstat (limited to 'php-doctrine-dbal-get-source.sh')
-rwxr-xr-x | php-doctrine-dbal-get-source.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/php-doctrine-dbal-get-source.sh b/php-doctrine-dbal-get-source.sh index e283587..f8f69e8 100755 --- a/php-doctrine-dbal-get-source.sh +++ b/php-doctrine-dbal-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 |