diff options
author | Albert Hopkins <marduk@gentoo.org> | 2007-01-06 01:13:34 +0000 |
---|---|---|
committer | Albert Hopkins <marduk@gentoo.org> | 2007-01-06 01:13:34 +0000 |
commit | 9267543aeabde5b9b965c0fb116b910a431d6bc1 (patch) | |
tree | 5f5b0419f6cebf08bff15001fb8ca1d714b494fa | |
parent | Script to create a site in one fell swoop (diff) | |
download | gentoo-9267543aeabde5b9b965c0fb116b910a431d6bc1.tar.gz gentoo-9267543aeabde5b9b965c0fb116b910a431d6bc1.tar.bz2 gentoo-9267543aeabde5b9b965c0fb116b910a431d6bc1.zip |
Script to update database/pages. To be run via cron scheduler.
-rw-r--r-- | src/packages/run.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/packages/run.sh b/src/packages/run.sh new file mode 100644 index 0000000000..f704f01f70 --- /dev/null +++ b/src/packages/run.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +PYTHONPATH="$(dirname $0):$PYTHONPATH" +export PYTHONPATH +TZ="UTC" +export TZ + +DOCS=$(python -c 'import config; print config.LOCALHOME') +LIB=$(python -c 'import config; print config.FELIB') + +rm -f ${DOCS}/ebuilds/*-*.html 2> /dev/null +$LIB/purge_db.py +$LIB/gentoo.py -g +$LIB/weeks.py > ${DOCS}/weeks.html +$LIB/categories2.py > ${DOCS}/categories/main.shtml +$LIB/new_ebuilds.py > ${DOCS}/new/main.shtml +$LIB/new_ebuilds.py bumps > ${DOCS}/bumps/main.shtml +$LIB/new_ebuilds.py rss > ${DOCS}/feeds/new.rss +#/bin/nice ~/freshebuilds/lib/genxml.py |