summaryrefslogtreecommitdiffstats
path: root/php-jms-serializer-get-source.sh
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-09-25 07:35:18 +0200
committerRemi Collet <remi@remirepo.net>2017-09-25 07:35:18 +0200
commita33673e63e7e85740df0b340eafb96c8682a084a (patch)
tree86f85365e9b0728e9c3ffda6206d18c95790c34f /php-jms-serializer-get-source.sh
parent30440a731d3126f568d58b22a534fe92fee858a0 (diff)
backport stuff
Diffstat (limited to 'php-jms-serializer-get-source.sh')
-rwxr-xr-xphp-jms-serializer-get-source.sh4
1 files changed, 3 insertions, 1 deletions
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