[Debian-live-changes] r1352 - dists/trunk/live-helper/examples

Daniel Baumann daniel at alioth.debian.org
Mon May 7 10:28:07 UTC 2007


Author: daniel
Date: 2007-05-07 10:28:06 +0000 (Mon, 07 May 2007)
New Revision: 1352

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 10:03:23 UTC (rev 1351)
+++ dists/trunk/live-helper/examples/snapshot-build.sh	2007-05-07 10:28:06 UTC (rev 1352)
@@ -47,22 +47,26 @@
 
 	# Getting version
 	cd "${BUILD}"/${PACKAGE}
-	VERSION="`dpkg-parsechangelog | awk '/Version: / { print $2 }'`"
+	VERSION="`dpkg-parsechangelog | awk '/Version: / { print $2 }' | awk -F- '{ print $1 }'`"
 	cd "${OLDPWD}"
 
 	# Getting revision
 	cd "${BUILD}"/${PACKAGE}
 	REVISION="`svn info | awk '/Last Changed Rev: / { print $4 }'`"
-	mv "${BUILD}"/${PACKAGE} "${BUILD}"/${PACKAGE}-${REVISION}
 	cd "${OLDPWD}"
 
+	# Renaming directory
+	mv "${BUILD}"/${PACKAGE} "${BUILD}"/${PACKAGE}-${VERSION}~${REVISION}
+
 	# Building package
-	cd "${BUILD}"/${PACKAGE}-${REVISION}
-	dch --newversion ${VERSION}~${REVISION} --distribution UNRELEASED Autobuild snapshot.
+	cd "${BUILD}"/${PACKAGE}-${VERSION}~${REVISION}
+	dch --force-bad-version --newversion ${VERSION}~${REVISION} --distribution UNRELEASED Autobuild snapshot.
 	dpkg-buildpackage -rfakeroot -sa -uc -us
 	cd "${OLDPWD}"
-	rm -rf "${BUILD}"/${PACKAGE}-${REVISION}
 
+	# Removing sources
+	rm -rf "${BUILD}"/${PACKAGE}-${VERSION}~${REVISION}
+
 	# Creating directory
 	if [ ! -d "${SERVER}" ]
 	then




More information about the Debian-live-changes mailing list