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

Daniel Baumann daniel at alioth.debian.org
Wed May 9 07:54:30 UTC 2007


Author: daniel
Date: 2007-05-09 07:54:30 +0000 (Wed, 09 May 2007)
New Revision: 1420

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-09 07:34:04 UTC (rev 1419)
+++ dists/trunk/live-helper/examples/snapshot-build.sh	2007-05-09 07:54:30 UTC (rev 1420)
@@ -1,4 +1,4 @@
-#!/bin/sh -x
+#!/bin/sh
 
 # Needs: build-essential fakeroot lsb-release svn [...]
 
@@ -45,17 +45,14 @@
 	# Getting sources
 	cd "${BUILD}"
 	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 }' | awk -F- '{ print $1 }'`"
-	cd "${OLDPWD}"
 
 	# Getting revision
 	cd "${BUILD}"/${PACKAGE}
 	REVISION="`svn info | awk '/Last Changed Rev:/ { print $4 }'`"
-	cd "${OLDPWD}"
 
 	# Check for existing package
 	if [ ! -f "${SERVER}"/${PACKAGE}_${VERSION}~${REVISION}.dsc ] || [ "${1}" = "--force" ]
@@ -70,7 +67,6 @@
 		find . -type d -name .svn | xargs rm -rf
 		dch --force-bad-version --newversion ${VERSION}~${REVISION} --distribution UNRELEASED Autobuild snapshot of SVN r${REVISION}.
 		dpkg-buildpackage -rfakeroot -sa -uc -us
-		cd "${OLDPWD}"
 
 		# Removing sources
 		rm -rf "${BUILD}"/${PACKAGE}-${VERSION}~${REVISION}
@@ -99,17 +95,15 @@
 then
 	LAST_UPDATE="`date -R`"
 
-	# Updating binary indices
 	cd "${SERVER}"
+
+	# Updating binary indices
 	apt-ftparchive packages ./ > Packages
 	gzip -9 -c Packages > Packages.gz
-	cd "${OLDPWD}"
 
 	# Updating source indices
-	cd "${SERVER}"
 	apt-ftparchive sources ./ > Sources
 	gzip -9 -c Sources > Sources.gz
-	cd "${OLDPWD}"
 fi
 
 # Reading timestamp




More information about the Debian-live-changes mailing list