[Debian-l10n-commits] dl10n branch master updated. 8fba659bab502e27cd84d472205e196f3f59e02c

Christian Perrier bubulle at alioth.debian.org
Sun Aug 5 17:53:55 UTC 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "dl10n".

The branch, master has been updated
       via  8fba659bab502e27cd84d472205e196f3f59e02c (commit)
      from  03d0e19b9854d14b99fe555e38f1e2af51e60a41 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------

http://anonscm.debian.org/gitweb/?p=debian-l10n/dl10n.git;a=commitdiff;h=8fba659bab502e27cd84d472205e196f3f59e02c

commit 8fba659bab502e27cd84d472205e196f3f59e02c
Author: Christian PERRIER <bubulle at debian.org>
Date:   Sun Aug 5 19:53:46 2012 +0200

    First version of this script, derived from dl10n-rrd/examples/update_unstable.sh

-----------------------------------------------------------------------

Summary of changes:
 .../example/update_unstable.sh => cron/l10n-rrd    |   40 +++++++++++++------
 1 files changed, 27 insertions(+), 13 deletions(-)
 copy dl10n-rrd/example/update_unstable.sh => cron/l10n-rrd (71%)

diff --git a/dl10n-rrd/example/update_unstable.sh b/cron/l10n-rrd
similarity index 71%
copy from dl10n-rrd/example/update_unstable.sh
copy to cron/l10n-rrd
index aac60a9..dcf6984 100755
--- a/dl10n-rrd/example/update_unstable.sh
+++ b/cron/l10n-rrd
@@ -14,22 +14,37 @@ set -e
 # (at your option) any later version.
 #
 
+PROGNAME=$(basename $0)
+
+# Get global config and checks
+. $(dirname $(readlink -f $0))/../etc/dl10n.conf
+
+
 GRAPH_SCRIPTS_DIR=$(dirname $0)
-. $GRAPH_SCRIPTS_DIR/config.sh
 
-dist=unstable
+dist=$1
+
+OPTS=""
+if [ -z "$2" ]
+then
+	if [ "$2" == "BTS" ]
+	then
+		OPTS="--assume-bts"
+		dist=${dist}BTS
+	fi
+fi
 
 export LC_ALL=C
 
-cd $RRD_HOME/${dist}/
-if [ ! -e /srv/i18n.debian.net/www/debian-l10n-material/data/$dist.gz ]
+cd $OUTDIR/${dist}/
+if [ ! -e $MATERIALDIR/data/$dist.gz ]
 then
-    echo "No /srv/i18n.debian.net/www/debian-l10n-material/data/$dist.gz! Exiting."
+    echo "No $MATERIALDIR/data/$dist.gz! Exiting."
     exit 1
 fi
-gunzip -c /srv/i18n.debian.net/www/debian-l10n-material/data/$dist.gz > $dist
+gunzip -c $MATERIALDIR/data/$dist.gz > $dist
 
-PERLLIB=$DL10N_HOME/lib $DL10N_HOME/dl10n-rrd/dl10n-rrd --db=$dist
+PERLLIB=$DL10NDIR/lib $DL10NDIR/dl10n-rrd/dl10n-rrd $OPTS --db=$dist
 
 for period in week month year
 do
@@ -43,12 +58,12 @@ do
         range=""
         case $fmt in
             po)
-                languages="fr de es it sv ru nl ja pt_BR pl cs" ;;
+                languages=${RRD_LANGS_PO} ;;
             podebconf)
                 range="--upper-limit 11000 --lower-limit 5000 --rigid";
-                languages="fr cs de sv vi ja nl es pt_BR pt ru gl" ;;
+                languages=${RRD_LANGS_PODEBCONF} ;;
             po4a)
-                languages="fr es ja ru de ca pl it sv pt_BR uk ko el tr hu" ;;
+                languages=${RRD_LANGS_PO4A} ;;
         esac
         $GRAPH_SCRIPTS_DIR/graph_ranks.sh \
             -o "$period/$fmt.png" \
@@ -81,11 +96,10 @@ rm -f $dist
 #
 # man pages
 #
-$DL10N_HOME/dl10n-rrd/manpages-rrd.pl $dist
+$DL10NDIR/dl10n-rrd/manpages-rrd.pl $dist
 
-languages="ja fr es pl de ko zh_CN zh_TW pt it ru"
 $GRAPH_SCRIPTS_DIR/manpages_graph_ranks.sh \
-    $languages \
+    ${RRD_LANGS_MANPAGES} \
     -- \
     --zoom 1.5 \
     --start end-1month --end 00:00+1d
-----------------------------------------------------------------------


hooks/post-receive
-- 
dl10n



More information about the Debian-l10n-commits mailing list