diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:30:54 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:30:54 +0000 |
commit | 06ff7c7b5e0657c8ce12d8cca73a4483550b8c45 (patch) | |
tree | bc4df6eb2664935fbc924d8a82ac4988fe341699 | |
parent | cfb57e04c02a22d9d5f745687e331dec991f2c1a (diff) | |
download | mocca-06ff7c7b5e0657c8ce12d8cca73a4483550b8c45.tar.gz mocca-06ff7c7b5e0657c8ce12d8cca73a4483550b8c45.tar.bz2 mocca-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
-rwxr-xr-x | publish.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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]} |