Skip to content
Snippets Groups Projects
Commit 3247b5da authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Modify the build script to allow passing the source repository as a parameter.

parent 952027dd
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
set -e set -e
VERSION=$1 VERSION=$1
REPOPATH=$2
if ! shift; then if ! shift; then
echo "$0: Missing required version parameter." >&2 echo "$0: Missing required version parameter." >&2
...@@ -14,6 +15,10 @@ if [ -z "$VERSION" ]; then ...@@ -14,6 +15,10 @@ if [ -z "$VERSION" ]; then
exit 1 exit 1
fi fi
if [ -z "$REPO" ]; then
REPOPATH="https://github.com/simplesamlphp/simplesamlphp.git"
fi
TAG="v$VERSION" TAG="v$VERSION"
TARGET="simplesamlphp-$VERSION" TARGET="simplesamlphp-$VERSION"
...@@ -26,8 +31,6 @@ fi ...@@ -26,8 +31,6 @@ fi
umask 0022 umask 0022
REPOPATH="https://github.com/simplesamlphp/simplesamlphp.git"
git clone $REPOPATH $TARGET git clone $REPOPATH $TARGET
cd $TARGET cd $TARGET
git checkout $TAG git checkout $TAG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment