[Debian-l10n-commits] [SCM] Debian i18n - l10n development - dl10n robots branch, master, updated. 1b082077cbe980a1666a5b0597b864c9f68fe8de
Simon Paillard
spaillard at debian.org
Sun Jun 17 14:59:11 UTC 2012
The following commit has been merged in the master branch:
commit 1b082077cbe980a1666a5b0597b864c9f68fe8de
Author: Simon Paillard <spaillard at debian.org>
Date: Sun Jun 17 14:59:05 2012 +0000
spiderinit: use central config file
diff --git a/cron/spiderinit b/cron/spiderinit
index a6266d7..e6e3961 100755
--- a/cron/spiderinit
+++ b/cron/spiderinit
@@ -3,7 +3,6 @@
set -e
FAST=1
-STAMP=$(date "+%Y%m%d-%H%M")
# spiderinit - Initialize the spider databases.
# It looks for all the messages in the mailing lists, since their creation.
@@ -12,10 +11,13 @@ STAMP=$(date "+%Y%m%d-%H%M")
# messages are sent during a month. It should check the current date and
# move to the next month.
-DL10NDIR=/srv/i18n.debian.org/dl10n/git
-LOGDIR=/srv/i18n.debian.org/log/spiderinit
-LOGPREFIX=$LOGDIR/spiderinit.$STAMP
-OUTDIR=/srv/i18n.debian.org/htdocs/coordination
+PROGNAME=$(basename $0)
+
+# Get global config and checks
+source $(dirname $0)/../etc/dl10n.conf
+
+# OUTDIR overwritten, where to put produced data ?
+OUTDIR=$I18NROOT/htdocs/coordination
mkdir -p "$OUTDIR/data"
@@ -24,7 +26,7 @@ mkdir -p "$OUTDIR/data"
export PERLLIB="$DL10NDIR/lib"
export PATH=$DL10NDIR:$PATH
-TMPDB="$OUTDIR/data/tmp"
+TMPDB="$TMP/temp.db"
run_spider () {
lang=$1
--
Debian i18n - l10n development - dl10n robots
More information about the Debian-l10n-commits
mailing list