diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-11-06 19:11:46 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-11-06 19:11:46 +0100 |
commit | 7de4a0eb2874c4a50458eeceb7699fd2fb0cdaf0 (patch) | |
tree | c36ae6e3da24c5d178a15e46e4861eb5043358ce /php-sentry-get-source.sh | |
parent | 77c1472edf9e3b2b5dd6efb421ef9aa0b9753baf (diff) |
php-sentry: add backport stuff
Diffstat (limited to 'php-sentry-get-source.sh')
-rwxr-xr-x | php-sentry-get-source.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/php-sentry-get-source.sh b/php-sentry-get-source.sh index ba71f5d..9399d7f 100755 --- a/php-sentry-get-source.sh +++ b/php-sentry-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.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 |