[Project] Changed how version is detected for bundle creation

This commit is contained in:
Robert von Burg 2016-07-05 10:40:04 +02:00
parent 8298b30d42
commit 800efec37d
1 changed files with 1 additions and 1 deletions

View File

@ -4,13 +4,13 @@ projectName=strolch_bundle
DIST_STROLCH="/var/www/eitch/strolch.li/dist/snapshot"
DEPLOY_SERVER="hosting.eitchnet.ch"
ROOT="$(cd ${0%/*} ; pwd)"
workDir="${ROOT}/target/${bundle_name}"
projectVersion=$(grep -m 1 "<version>" pom.xml | tr '<>' '|' | cut -d '|' -f 3)
if [ $? != 0 ] ; then
echo "ERROR: Failed to parse version!"
fi
bundle_name="${projectName}-${projectVersion}"
workDir="${ROOT}/target/${bundle_name}"
echo "INFO: Creating bundle ${bundle_name}"