summaryrefslogtreecommitdiffstats
path: root/php-simplesamlphp-saml2_3-get-source.sh
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-09-04 12:17:09 +0200
committerRemi Collet <remi@remirepo.net>2017-09-04 12:17:09 +0200
commitbb75b4f31ad4a479dc1b0eb6beb09f831116b6bb (patch)
treeadd28e3d6b842ad932fd95054667d12ea0e51d6b /php-simplesamlphp-saml2_3-get-source.sh
parent921540db12178adf5eeb77a9b2d45fa53b46312a (diff)
backport
Diffstat (limited to 'php-simplesamlphp-saml2_3-get-source.sh')
-rwxr-xr-xphp-simplesamlphp-saml2_3-get-source.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/php-simplesamlphp-saml2_3-get-source.sh b/php-simplesamlphp-saml2_3-get-source.sh
index ba71f5d..4ad1051 100755
--- a/php-simplesamlphp-saml2_3-get-source.sh
+++ b/php-simplesamlphp-saml2_3-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