diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-10-15 07:43:12 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-10-15 07:43:12 +0200 |
commit | 2fbdcc5979e8235b7d94a746d8323d8a5ee76955 (patch) | |
tree | 6ab87f25f375e690306af4d3fbc512288ed8ab09 /php-patchwork-utf8-get-source.sh | |
parent | 37a9f5d7763cb79bcb3a0a40fd9ca206a73d21e5 (diff) |
php-patchwork-utf8: 1.2.5
Diffstat (limited to 'php-patchwork-utf8-get-source.sh')
-rwxr-xr-x | php-patchwork-utf8-get-source.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/php-patchwork-utf8-get-source.sh b/php-patchwork-utf8-get-source.sh index ba71f5d..2e978ed 100755 --- a/php-patchwork-utf8-get-source.sh +++ b/php-patchwork-utf8-get-source.sh @@ -43,6 +43,7 @@ print "GIT_REPO = $GIT_REPO" print "GIT_DIR = $GIT_DIR" TEMP_DIR=$(mktemp --dir) +SRC_DIR=$PWD pushd $TEMP_DIR print "Cloning git repo..." @@ -51,6 +52,7 @@ pushd $TEMP_DIR pushd $GIT_DIR print "Checking out commit..." $GIT checkout $GIT_COMMIT + cp composer.json ${SRC_DIR}/composer-${VERSION}.json popd TAR_DIR=${GIT_NAME}-${GIT_COMMIT} @@ -58,7 +60,7 @@ pushd $TEMP_DIR mv $GIT_DIR $TAR_DIR - TAR_FILE=`$RPM --eval='%{_sourcedir}'`/${NAME}-${VERSION}-${GIT_COMMIT}.tar.gz + TAR_FILE=${SRC_DIR}/${NAME}-${VERSION}-${GIT_COMMIT}.tar.gz print "TAR_FILE = $TAR_FILE" [ -e $TAR_FILE ] && rm -f $TAR_FILE |