[Debian-live-changes] r1356 - dists/trunk/live-helper/examples
Daniel Baumann
daniel at alioth.debian.org
Mon May 7 11:23:18 UTC 2007
Author: daniel
Date: 2007-05-07 11:23:18 +0000 (Mon, 07 May 2007)
New Revision: 1356
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 11:21:07 UTC (rev 1355)
+++ dists/trunk/live-helper/examples/snapshot-build.sh 2007-05-07 11:23:18 UTC (rev 1356)
@@ -15,6 +15,8 @@
BUILD="/srv/tmp2"
SERVER="/srv/debian-unofficial/ftp/debian-live/debian-snapshot"
+DATE_START="`date -R`"
+
# Checking lock file
if [ -f "${SERVER}"/Archive-Update-in-Progress ]
then
@@ -32,7 +34,7 @@
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
+echo "${DATE_START}" > "${SERVER}"/Archive-Update-in-Progress
# Processing packages
for PACKAGE in ${PACKAGES}
@@ -95,8 +97,8 @@
gzip -9 -c Sources > Sources.gz
cd "${OLDPWD}"
-# Updating timestamp
-echo "`date -R`" > "${SERVER}"/LAST_BUILD
+# Writing timestamp
+echo -e "Begin: ${DATE_START}\nEnd: `date -R`" > "${SERVER}"/LAST_BUILD
# Removing build directory
rm -rf "${BUILD}"
More information about the Debian-live-changes
mailing list