diff --git a/bin/build-release.sh b/bin/build-release.sh index 0a981b53a156f51db5fca6ef7e4ada40842a2f15..23ef38668d1c004842a6d21d5d12847eaa30852d 100755 --- a/bin/build-release.sh +++ b/bin/build-release.sh @@ -3,6 +3,7 @@ set -e VERSION=$1 +REPOPATH=$2 if ! shift; then echo "$0: Missing required version parameter." >&2 @@ -14,6 +15,10 @@ if [ -z "$VERSION" ]; then exit 1 fi +if [ -z "$REPO" ]; then + REPOPATH="https://github.com/simplesamlphp/simplesamlphp.git" +fi + TAG="v$VERSION" TARGET="simplesamlphp-$VERSION" @@ -26,8 +31,6 @@ fi umask 0022 -REPOPATH="https://github.com/simplesamlphp/simplesamlphp.git" - git clone $REPOPATH $TARGET cd $TARGET git checkout $TAG