[Debian-live-changes] r1400 - dists/trunk/live-helper/examples
Daniel Baumann
daniel at alioth.debian.org
Tue May 8 20:16:03 UTC 2007
Author: daniel
Date: 2007-05-08 20:16:03 +0000 (Tue, 08 May 2007)
New Revision: 1400
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-08 20:12:02 UTC (rev 1399)
+++ dists/trunk/live-helper/examples/snapshot-build.sh 2007-05-08 20:16:03 UTC (rev 1400)
@@ -49,12 +49,12 @@
# Getting version
cd "${BUILD}"/${PACKAGE}
- VERSION="`dpkg-parsechangelog | awk '/Version: / { print $2 }' | awk -F- '{ print $1 }'`"
+ 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 }'`"
+ REVISION="`svn info | awk '/Last Changed Rev:/ { print $4 }'`"
cd "${OLDPWD}"
# Check for existing package
@@ -111,6 +111,12 @@
cd "${OLDPWD}"
fi
+# Reading timestamp
+if [ -z "${LAST_UPDATE}" ]
+then
+ LAST_UPDATE="`awk '/Last update:/ { print $2 }' ${SERVER}/LAST_BUILD`"
+fi
+
# Writing timestamp
cat > "${SERVER}"/LAST_BUILD << EOF
Last run begin: ${DATE_START}
More information about the Debian-live-changes
mailing list