diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-01-31 18:39:01 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-01-31 18:39:01 +0100 |
commit | febe682c1abb0099dc07458d77c2cdf519196f3f (patch) | |
tree | 4a52b7f83d70c700bd48f325f62e19e7f2c71ae8 /php-guzzlehttp-guzzle6-get-source.sh | |
parent | 9a50287fd5eea98023363a9451d0b70b383ea9f9 (diff) |
php-guzzlehttp-guzzle6: backport for #remirepo
Diffstat (limited to 'php-guzzlehttp-guzzle6-get-source.sh')
-rwxr-xr-x | php-guzzlehttp-guzzle6-get-source.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/php-guzzlehttp-guzzle6-get-source.sh b/php-guzzlehttp-guzzle6-get-source.sh index ba71f5d..2397e9b 100755 --- a/php-guzzlehttp-guzzle6-get-source.sh +++ b/php-guzzlehttp-guzzle6-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-${VERSION}.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 |