mirror of https://github.com/apache/cloudstack.git
Merge branch 'master' of https://github.com/DaanHoogland/cloudstack
This commit is contained in:
commit
b3281eef15
|
|
@ -48,8 +48,15 @@ function packaging() {
|
|||
fi
|
||||
|
||||
DISTRO=$3
|
||||
|
||||
VERSION=`(cd ../; mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version) | grep --color=none '^[0-9]\.'`
|
||||
MVN=`which mvn`
|
||||
if [ -z "$MVN" ] ; then
|
||||
MVN=`locate bin/mvn | grep -e mvn$ | tail -1`
|
||||
if [ -z "$MVN" ] ; then
|
||||
echo "mvn not found\n cannot retrieve version to package\n RPM Build Failed"
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
VERSION=`(cd ../; $MVN org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version) | grep --color=none '^[0-9]\.'`
|
||||
if echo $VERSION | grep -q SNAPSHOT ; then
|
||||
REALVER=`echo $VERSION | cut -d '-' -f 1`
|
||||
DEFVER="-D_ver $REALVER"
|
||||
|
|
|
|||
Loading…
Reference in New Issue