diff --git a/createBundle.sh b/createBundle.sh index 4e0347dc5..ddf74bb05 100755 --- a/createBundle.sh +++ b/createBundle.sh @@ -1,12 +1,13 @@ #!/bin/bash -if [ $# != 1 ] ; then - echo "Usage: ${0} " - exit 1 +projectVersion=$(grep -m 1 "" pom.xml | tr '<>' '|' | cut -d '|' -f 3) +if [ $? != 0 ] ; then + echo "ERROR: Failed to parse version!" fi +echo "INFO: Project version is ${projectVersion}" + projectName=strolch_bundle -projectVersion=${1} bundle_name="${projectName}-${projectVersion}" DIST_STROLCH="/var/www/eitch/strolch.li/dist/snapshot" DEPLOY_SERVER="hosting.eitchnet.ch"