[Debian-l10n-commits] [SCM] Debian i18n - l10n development - dl10n robots branch, master, updated. 19209824479607390a0396dc605c182de251a424
Simon Paillard
spaillard at debian.org
Sun Jun 17 14:29:05 UTC 2012
The following commit has been merged in the master branch:
commit 19209824479607390a0396dc605c182de251a424
Author: Simon Paillard <spaillard at debian.org>
Date: Sun Jun 17 14:28:48 2012 +0000
genpts: use central config file
diff --git a/cron/genpts b/cron/genpts
index 6f30c0a..6849333 100755
--- a/cron/genpts
+++ b/cron/genpts
@@ -2,20 +2,20 @@
# genpts - Generate the data for the PTS links
-DL10NDIR=/srv/dl10n-stuff/svn/dl10n
-OUTDIR=/srv/i18n.debian.net/www/l10n-pkg-status
-STAT_DATABASE=/srv/i18n.debian.net/www/debian-l10n-material/data/unstable.gz
+set -e
-umask 0002
+PROGNAME=$(basename $0)
+
+# Get global config and checks
+source $(dirname $0)/../etc/dl10n.conf
cd $DL10NDIR
rm -rf "$OUTDIR"/*
mkdir "$OUTDIR/img"
-cp html/translated.png html/fuzzy.png html/untranslated.png "$OUTDIR/img"
+cp -l htdocs-static/{translated.png,fuzzy.png,untranslated.png} "$OUTDIR/img"
-PERLLIB=lib ./dl10n-pts \
- --db "$STAT_DATABASE" \
+$DL10NDIR/dl10n-pts \
+ --db "$STAT_DATABASE" \
--gendir "$OUTDIR"
-
--
Debian i18n - l10n development - dl10n robots
More information about the Debian-l10n-commits
mailing list