From 188082b80075b6be1ece6cd56f2d0cb88185c832 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Tue, 5 Jul 2016 10:28:50 +0200 Subject: [PATCH] [Project] Changed how version is detected for bundle creation --- createBundle.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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"