[Debian-live-changes] r1351 - dists/trunk/live-helper/examples
Daniel Baumann
daniel at alioth.debian.org
Mon May 7 10:03:24 UTC 2007
Author: daniel
Date: 2007-05-07 10:03:23 +0000 (Mon, 07 May 2007)
New Revision: 1351
Modified:
dists/trunk/live-helper/examples/snapshot-build.sh
Log:
Modified: dists/trunk/live-helper/examples/snapshot-build.sh
===================================================================
--- dists/trunk/live-helper/examples/snapshot-build.sh 2007-05-07 09:58:51 UTC (rev 1350)
+++ dists/trunk/live-helper/examples/snapshot-build.sh 2007-05-07 10:03:23 UTC (rev 1351)
@@ -45,6 +45,11 @@
svn co svn://svn.debian.org/debian-live/dists/trunk/${PACKAGE} ${PACKAGE}
cd "${OLDPWD}"
+ # Getting version
+ cd "${BUILD}"/${PACKAGE}
+ VERSION="`dpkg-parsechangelog | awk '/Version: / { print $2 }'`"
+ cd "${OLDPWD}"
+
# Getting revision
cd "${BUILD}"/${PACKAGE}
REVISION="`svn info | awk '/Last Changed Rev: / { print $4 }'`"
@@ -53,7 +58,7 @@
# Building package
cd "${BUILD}"/${PACKAGE}-${REVISION}
- dch --newversion ${REVISION} --distribution UNRELEASED Autobuild snapshot.
+ dch --newversion ${VERSION}~${REVISION} --distribution UNRELEASED Autobuild snapshot.
dpkg-buildpackage -rfakeroot -sa -uc -us
cd "${OLDPWD}"
rm -rf "${BUILD}"/${PACKAGE}-${REVISION}
More information about the Debian-live-changes
mailing list