Author: reinhard
Date: 2007-06-06 10:04:06 -0500 (Wed, 06 Jun 2007)
New Revision: 9691
Modified:
trunk/www/utils/sbin/update-tasks
Log:
More logfile improvements.
Modified: trunk/www/utils/sbin/update-tasks
===================================================================
--- trunk/www/utils/sbin/update-tasks 2007-06-06 14:50:52 UTC (rev 9690)
+++ trunk/www/utils/sbin/update-tasks 2007-06-06 15:04:06 UTC (rev 9691)
@@ -52,7 +52,7 @@
(
-echo "$(date --iso-8601=seconds) Checking for a lockfile."
+echo "$(date +"%F %T") Checking for a lockfile."
lockfile-create $LOCKFILE
(while :; do lockfile-touch $LOCKFILE; sleep 60; done) 2>/dev/null &
# Save the PID of the lockfile-touch process
@@ -64,13 +64,13 @@
#
if [ "$RECHECKOUT" = "yes" ]
then
- echo "$(date --iso-8601=seconds) Checking out svn."
+ echo "$(date "%F %T") Checking out svn."
rm -rf ${CHECKOUT}
svn co -q --non-interactive file:///var/svn/gnue/trunk ${CHECKOUT}
else
SVNUPDATE="svn update --non-interactive -q"
SVNCLEANUP="svn cleanup"
- echo "$(date --iso-8601=seconds) Updating svn."
+ echo "$(date "%F %T") Updating svn."
# Autogenerated stuff that gets in the way
cd ${CHECKOUT}
rm -f */po/*.po* 2>&1 > /dev/null
@@ -84,18 +84,18 @@
# Run setup-svn.py to get a working install in /usr/local/gnue-sandbox/
#
rm -rf ${BASE}/gnue ${BASE}/bin/*
-echo "$(date --iso-8601=seconds) Running setup-svn.py."
+echo "$(date "%F %T") Running setup-svn.py."
cd ${CHECKOUT}/gnue-common
HOME=${BASE} ./setup-svn.py --auto 2>&1 | sed 's/^/ (*) /g'
# Update the website based on gnue/www/
-echo "$(date --iso-8601=seconds) Updating website."
+echo "$(date "%F %T") Updating website."
cd ${CHECKOUT}/www
$BASE/bin/gcvs utils/create-website --update --dest /usr/local/www/gnue/htdocs --htdig /etc/htdig --twiki /var/lib/twiki/templates 2>&1 | sed 's/^/ (*) /g'
# Update the downloads section
-echo "$(date --iso-8601=seconds) Updating downloads."
+echo "$(date "%F %T") Updating downloads."
/usr/local/gnue-sandbox/sbin/update-downloads 2>&1 | sed 's/^/ (*) /g'
#
@@ -105,7 +105,7 @@
for tool in `(cd ${INSTALLED}/gnue; ls|grep -v '\.')`
do
SRC=${INSTALLED}/gnue/${tool}
- echo -n "$(date --iso-8601=seconds) Performing tasks for ${tool}:"
+ echo -n "$(date "%F %T") Performing tasks for ${tool}:"
#
# Epydoc
@@ -150,7 +150,7 @@
kill ${BADGER} 2>/dev/null
lockfile-remove $LOCKFILE
-echo "$(date --iso-8601=seconds) Website update finished."
+echo "$(date "%F %T") Website update finished."
) > $OUTFILE 2>&1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.