summaryrefslogtreecommitdiff
path: root/publish.sh
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:30:54 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:30:54 +0000
commit06ff7c7b5e0657c8ce12d8cca73a4483550b8c45 (patch)
treebc4df6eb2664935fbc924d8a82ac4988fe341699 /publish.sh
parentcfb57e04c02a22d9d5f745687e331dec991f2c1a (diff)
downloadpdf-over-06ff7c7b5e0657c8ce12d8cca73a4483550b8c45.tar.gz
pdf-over-06ff7c7b5e0657c8ce12d8cca73a4483550b8c45.tar.bz2
pdf-over-06ff7c7b5e0657c8ce12d8cca73a4483550b8c45.zip
Allow profile selection for build script
* Usage: publish.sh [--profiles "profile1 profile2 ..."] [maven parameters] git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@359 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'publish.sh')
-rwxr-xr-xpublish.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/publish.sh b/publish.sh
index 33a7d7c1..56dbf533 100755
--- a/publish.sh
+++ b/publish.sh
@@ -48,6 +48,13 @@ mkdir -p $LOG_DIR
profiles=( linux windows mac )
names=( linux windows mac )
+if [[ "$1" != "" ]] && [[ "$1" == "--profiles" ]]; then
+ profiles=( $2 )
+ names=( $2 )
+ shift
+ shift
+ MVN_PARAMS="$@"
+fi
for (( i = 0 ; i < ${#names[@]} ; i++ )) do
PROFILE=${profiles[$i]}