From a33673e63e7e85740df0b340eafb96c8682a084a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 25 Sep 2017 07:35:18 +0200 Subject: backport stuff --- php-jms-serializer-get-source.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'php-jms-serializer-get-source.sh') diff --git a/php-jms-serializer-get-source.sh b/php-jms-serializer-get-source.sh index dcaf2d9..be03311 100755 --- a/php-jms-serializer-get-source.sh +++ b/php-jms-serializer-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..." @@ -54,6 +56,7 @@ pushd $TEMP_DIR print "Removing non-allowable licened content..." rm -rf doc + cp composer.json $CMP_FILE popd TAR_DIR=${GIT_NAME}-${GIT_COMMIT} @@ -61,7 +64,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 -- cgit