[hipl-dev] [Branch ~hipl-core/hipl/trunk] Rev 5961: debian packaging: Integrate Bazaar revision number in package version.

  • From: noreply@xxxxxxxxxxxxx
  • To: HIPL core team <hipl-dev@xxxxxxxxxxxxx>
  • Date: Thu, 09 Jun 2011 21:25:31 -0000

------------------------------------------------------------
revno: 5961
committer: Diego Biurrun <diego@xxxxxxxxxx>
branch nick: hipl
timestamp: Thu 2011-06-09 23:23:26 +0200
message:
  debian packaging: Integrate Bazaar revision number in package version.
modified:
  packaging/create-package.sh


--
lp:hipl
https://code.launchpad.net/~hipl-core/hipl/trunk

Your team HIPL core team is subscribed to branch lp:hipl.
To unsubscribe from this branch go to 
https://code.launchpad.net/~hipl-core/hipl/trunk/+edit-subscription
=== modified file 'packaging/create-package.sh'
--- packaging/create-package.sh 2011-02-24 09:29:01 +0000
+++ packaging/create-package.sh 2011-06-09 21:23:26 +0000
@@ -71,10 +71,9 @@
     done
 
     SPECFILE=$BUILDDIR/SPECS/hipl.spec
-    RELEASE=$(grep VCS_REVISION $SRCDIR/version.h | cut -d\" -f2)
 
     echo "Version: $VERSION"  > $SPECFILE
-    echo "Release: $RELEASE" >> $SPECFILE
+    echo "Release: $VCS_REVISION" >> $SPECFILE
     echo "%define _topdir $BUILDDIR" >> $SPECFILE
     cat $SRCDIR_PACKAGING/hipl.spec >> $SPECFILE
 
@@ -86,6 +85,7 @@
 
 build_deb()
 {
+    debchange --newversion ${VERSION}-${VCS_REVISION} "entry automatically 
added by $0"
     dpkg-buildpackage -us -uc -I.bzr $BUILDPACKAGE_OPTS
 }
 
@@ -95,6 +95,7 @@
 
 SRCDIR=$(echo $0 | sed s:/packaging/create-package.sh::)
 VERSION=$(grep '^AC_INIT' $SRCDIR/configure.ac | cut -d'[' -f 3 | cut -d']' 
-f1)
+VCS_REVISION=$(grep VCS_REVISION $SRCDIR/version.h | cut -d\" -f2)
 SRCDIR_PACKAGING=$SRCDIR/packaging
 REPO_BASE=/var/www/packages/html
 

Other related posts: