From 6bdc31b31dfcd92a4b0f0114b5465a750483476c Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 25 Dec 2012 08:58:05 +0100 Subject: Allow REPOSITORY_URL and REPOSITORY_ID to be pre-defined (setting server in user script) --- maven/make-deploy-one.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'maven/make-deploy-one.sh') diff --git a/maven/make-deploy-one.sh b/maven/make-deploy-one.sh index 458ee44..d9d6ae2 100755 --- a/maven/make-deploy-one.sh +++ b/maven/make-deploy-one.sh @@ -16,11 +16,14 @@ shift VERSION="$1" shift -REPOSITORY_URL="https://oss.sonatype.org/service/local/staging/deploy/maven2/" -REPOSITORY_ID="sonatype-nexus-staging" - -# REPOSITORY_URL="scpexe://jogamp.org/home/mraynsford/repository/" -# REPOSITORY_ID="jogamp-test-mirror" +if [ -z "${REPOSITORY_URL}" -o -z "${REPOSITORY_ID}" ] ; then + REPOSITORY_URL="https://oss.sonatype.org/service/local/staging/deploy/maven2/" + REPOSITORY_ID="sonatype-nexus-staging" + # REPOSITORY_URL="scpexe://jogamp.org/home/mraynsford/repository/" + # REPOSITORY_ID="jogamp-test-mirror" + # REPOSITORY_URL="scpexe://jogamp.org/srv/www/jogamp.org/deployment/maven/" + # REPOSITORY_ID="jogamp-mirror" +fi PLATFORMS=`cat make-platforms.txt | awk '{print $1}'` || exit 1 CURRENT_DIR=`pwd` || exit 1 -- cgit v1.2.3