[Debian-live-changes] r2492 - dists/trunk/live-helper/examples/cron
daniel at alioth.debian.org
daniel at alioth.debian.org
Sun Jul 15 09:08:35 UTC 2007
Author: daniel
Date: 2007-07-15 09:08:34 +0000 (Sun, 15 Jul 2007)
New Revision: 2492
Modified:
dists/trunk/live-helper/examples/cron/crontab
dists/trunk/live-helper/examples/cron/manpages.sh
Log:
Modified: dists/trunk/live-helper/examples/cron/crontab
===================================================================
--- dists/trunk/live-helper/examples/cron/crontab 2007-07-15 08:55:35 UTC (rev 2491)
+++ dists/trunk/live-helper/examples/cron/crontab 2007-07-15 09:08:34 UTC (rev 2492)
@@ -4,4 +4,5 @@
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
+*/10 * * * * user /usr/share/doc/live-helper/examples/cron/manpages.sh > /dev/null 2>&1
*/10 * * * * user /usr/share/doc/live-helper/examples/cron/snapshots.sh > /dev/null 2>&1
Modified: dists/trunk/live-helper/examples/cron/manpages.sh
===================================================================
--- dists/trunk/live-helper/examples/cron/manpages.sh 2007-07-15 08:55:35 UTC (rev 2491)
+++ dists/trunk/live-helper/examples/cron/manpages.sh 2007-07-15 09:08:34 UTC (rev 2492)
@@ -8,6 +8,8 @@
TEMPDIR="/srv/tmp/manpages"
SERVER="/srv/debian-live/www/other/manpages"
+DATE_START="`date -R`"
+
# Checking lock file
if [ -f "${SERVER}"/lock ]
then
@@ -49,9 +51,9 @@
svn co svn://svn.debian.org/debian-live/dists/trunk/${PACKAGE} ${PACKAGE}
# Building manpages
- for MANPAGE in ${PACKAGE}/manpages/*
+ for MANPAGE in "${TEMPDIR}"/${PACKAGE}/manpages/*
do
- man2html -D "${SERVER}" -r ${MANPAGE}
+ man2html -D "${SERVER}" -r ${MANPAGE} > "${SERVER}"/`basename ${MANPAGE}`.html
done
# Removing sources
More information about the Debian-live-changes
mailing list