cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject git commit: updated refs/heads/4.2 to db9f524
Date Fri, 23 Aug 2013 12:31:07 GMT
Updated Branches:
  refs/heads/4.2 d1ec6362f -> db9f5243c


Minor fix to package.sh, this prevented packages to be build for releases


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/db9f5243
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/db9f5243
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/db9f5243

Branch: refs/heads/4.2
Commit: db9f5243c31cf00dbf3ed4a81585671c27bab469
Parents: d1ec636
Author: Hugo Trippaers <htrippaers@schubergphilis.com>
Authored: Fri Aug 23 14:28:47 2013 +0200
Committer: Hugo Trippaers <htrippaers@schubergphilis.com>
Committed: Fri Aug 23 14:28:47 2013 +0200

----------------------------------------------------------------------
 packaging/centos63/package.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/db9f5243/packaging/centos63/package.sh
----------------------------------------------------------------------
diff --git a/packaging/centos63/package.sh b/packaging/centos63/package.sh
index ec56c0f..eae05de 100755
--- a/packaging/centos63/package.sh
+++ b/packaging/centos63/package.sh
@@ -37,11 +37,11 @@ PACK_PROJECT=cloudstack
 
 VERSION=`(cd ../../; mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version)
| grep '^[0-9]\.'`
 if echo $VERSION | grep SNAPSHOT ; then
-  REALVER=`echo $VERSION | cut -d '-' -f 1`
   DEFVER="-D_ver $REALVER"
   DEFPRE="-D_prerelease 1"
   DEFREL="-D_rel SNAPSHOT"
 else
+  REALVER=`echo $VERSION | cut -d '-' -f 1`
   DEFVER="-D_ver $REALVER"
   DEFPRE=
   DEFREL="-D_rel 1"
@@ -58,7 +58,7 @@ mkdir -p $RPMDIR/SOURCES/$PACK_PROJECT-$VERSION
 
 cp cloud.spec $RPMDIR/SPECS
 
-(cd $RPMDIR; rpmbuild --define "_topdir $RPMDIR" "$DEFVER" "$DEFREL" "$DEFPRE" -ba SPECS/cloud.spec)
+(cd $RPMDIR; rpmbuild --define "_topdir $RPMDIR" ${DEFVER} ${DEFREL} ${DEFPRE} -ba SPECS/cloud.spec)
 
 exit
 }


Mime
View raw message