[Debian-l10n-commits] [SCM] Debian i18n - l10n development - dl10n robots branch, master, updated. 8da4cd530c413fef432090c964b5873818bb56fe

Nicolas François nicolas.francois at centraliens.net
Sun Jun 17 15:33:16 UTC 2012


The following commit has been merged in the master branch:
commit 8da4cd530c413fef432090c964b5873818bb56fe
Author: Nicolas François <nicolas.francois at centraliens.net>
Date:   Sun Jun 17 17:30:13 2012 +0200

    Do not overwrite PATH.
    
    * cron/spiderinit: Do not overwrite PATH.

diff --git a/Changelog b/Changelog
index 6ade742..b91fb85 100644
--- a/Changelog
+++ b/Changelog
@@ -1,5 +1,9 @@
 2012-06-17  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* cron/spiderinit: Do not overwrite PATH.
+
+2012-06-17  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* cron/spiderbts: Use dl10n.conf
 	* cron/spiderbts: Cleanups.
 	* cron/spiderbts: Update to the i18n.d.o layout.
diff --git a/cron/spiderinit b/cron/spiderinit
index 802679f..40f903b 100755
--- a/cron/spiderinit
+++ b/cron/spiderinit
@@ -19,12 +19,9 @@ source $(dirname $0)/../etc/dl10n.conf
 # reuse spiderbts' OUTDIR
 OUTDIR=$DL10NDIR/../data/spiderbts
 
-mkdir -p "$LOGDIR"
 mkdir -p "$OUTDIR/data"
 
-export PERLLIB="$DL10NDIR/lib"
-export PATH=$DL10NDIR:$PATH
-TMPDB="$TMP/temp.db"
+TMPDB="$TMPDIR/temp.db"
 
 run_spider () {
 	lang=$1
@@ -35,7 +32,7 @@ run_spider () {
 		cp "$OUTDIR/data/status.$lang" "$TMPDB"
 	fi
 	echo "Running dl10n-spider ($lang $year-$month)..."
-	dl10n-spider --sdb "$TMPDB" --year=$year --month=$month --message=0 $lang
+	$DL10NDIR/dl10n-spider --sdb "$TMPDB" --year=$year --month=$month --message=0 $lang
 	mv -f "$TMPDB" "$OUTDIR/data/status.$lang"
 }
 
@@ -170,12 +167,12 @@ for language in ar ca cs da de en es fr gl id pt_BR ro ru sk sv tr; do
     cp "$OUTDIR/data/status.$language" "$TMPDB"
   fi
   echo "Running dl10n-spider ($language)..."                 >> $LOGPREFIX.log
-  dl10n-spider --sdb "$TMPDB" --check-bts $language          >> $LOGPREFIX.log \
+  $DL10NDIR/dl10n-spider --sdb "$TMPDB" --check-bts $language          >> $LOGPREFIX.log \
                                                             2>> $LOGPREFIX.err
   mv -f "$TMPDB" "$OUTDIR/data/status.$language"
 
   echo "Running dl10n-html ($language)..."                   >> $LOGPREFIX.log
-  dl10n-html --sdb "$OUTDIR/data/status.$language" $language >> $LOGPREFIX.log \
+  $DL10NDIR/dl10n-html --sdb "$OUTDIR/data/status.$language" $language >> $LOGPREFIX.log \
                                                             2>> $LOGPREFIX.err
 done
 

-- 
Debian i18n - l10n development - dl10n robots



More information about the Debian-l10n-commits mailing list