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

Daniel Baumann daniel at alioth.debian.org
Mon May 7 09:22:42 UTC 2007


Author: daniel
Date: 2007-05-07 09:22:42 +0000 (Mon, 07 May 2007)
New Revision: 1349

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:15:44 UTC (rev 1348)
+++ dists/trunk/live-helper/examples/snapshot-build.sh	2007-05-07 09:22:42 UTC (rev 1349)
@@ -5,10 +5,34 @@
 PACKAGES="live-helper live-initramfs"
 SERVER="/srv/debian-unofficial/ftp/debian-live/debian-snapshot"
 
+DEBEMAIL="debian-live-devel at lists.alioth.debian.org"
+EMAIL="debian-live-devel at lists.alioth.debian.org"
+DEBFULLNAME="Debian Live Autobuilder"
+NAME="Debian Live Autobuilder"
+
+# Checking lock file
+if [ -f "${SERVER}"/Archive-Update-in-Progress ]
+then
+	echo "E: locked."
+	exit 1
+fi
+
+# Creating server directory
+if [ ! -d "${SERVER}" ]
+then
+	mkdir -p "${SERVER}"
+fi
+
+# Creating lock trap
+trap "test -f ${SERVER}/Archive-Update-in-Progress && rm -f ${SERVER}/Archive-Update-in-Progress; exit 0" 0 1 2 3 9 15
+
+# Creating lock file
+touch "${SERVER}"/Archive-Update-in-Progress
+
 for PACKAGE in ${PACKAGES}
 do
 	# Creating directory
-	mkdir -p /srv/tmp2/${PACKAGE}
+	mkdir -p /srv/tmp2
 
 	# Getting sources
 	cd /srv/tmp2




More information about the Debian-live-changes mailing list