[Debian-l10n-commits] r2713 - in /ddtp-web: Changelog file2Translation.sh
nekral-guest at users.alioth.debian.org
nekral-guest at users.alioth.debian.org
Mon Jul 25 14:23:07 UTC 2011
Author: nekral-guest
Date: Mon Jul 25 14:23:07 2011
New Revision: 2713
URL: http://svn.debian.org/wsvn/?sc=1&rev=2713
Log:
* file2Translation.sh: Process wheezy instead of lenny (in
addition to sid)
* file2Translation.sh: To check the validity of ftp-master files,
download the list of packages and versions for squeeze instead of
etch.
* file2Translation.sh: Remove consecutive duplicate lines from the
./file2Translation.pl output (maybe to remove extra empty lines?).
Modified:
ddtp-web/Changelog
ddtp-web/file2Translation.sh
Modified: ddtp-web/Changelog
URL: http://svn.debian.org/wsvn/ddtp-web/Changelog?rev=2713&op=diff
==============================================================================
--- ddtp-web/Changelog (original)
+++ ddtp-web/Changelog Mon Jul 25 14:23:07 2011
@@ -17,7 +17,7 @@
* db_change_lang.pl: Convert km to km_KH.
* Translation2db.sh: For some reasons, this script, which do not
seem to be used, was changed to remove consecutive duplicate lines
- (maybe to remove extra empty lines?.
+ (maybe to remove extra empty lines?).
* update.sh: Compute the statistics for wheezy and squeeze instead
of lenny and etch
* update0.5.sh: Likewise.
@@ -25,3 +25,10 @@
that the list of descriptions which are checked for being already
completed is extended without regard of any existing translations
for their package.
+ * file2Translation.sh: Process wheezy instead of lenny (in
+ addition to sid)
+ * file2Translation.sh: To check the validity of ftp-master files,
+ download the list of packages and versions for squeeze instead of
+ etch.
+ * file2Translation.sh: Remove consecutive duplicate lines from the
+ ./file2Translation.pl output (maybe to remove extra empty lines?).
Modified: ddtp-web/file2Translation.sh
URL: http://svn.debian.org/wsvn/ddtp-web/file2Translation.sh?rev=2713&op=diff
==============================================================================
--- ddtp-web/file2Translation.sh (original)
+++ ddtp-web/file2Translation.sh Mon Jul 25 14:23:07 2011
@@ -5,14 +5,17 @@
# Fetch active langs from database
LANGS=`psql ddtp -q -A -t -c "select distinct language from translation_tb"`
-DISTS="lenny sid"
+#DISTS="lenny sid"
+#DISTS="squeeze sid"
+DISTS="wheezy sid"
mkdir -p packagelist
cd packagelist
-for distribution in $DISTS etch md5sum timestamp timestamp.gpg
+for distribution in $DISTS squeeze md5sum timestamp timestamp.gpg
do
rm -f $distribution
- wget -q -m -nd http://ftp-master.debian.org/i18n/$distribution
+ wget -q -m -nd http://ftp-master.debian.org/i18n/$distribution || \
+ echo "failed to wget http://ftp-master.debian.org/i18n/$distribution"
done
md5sum --check md5sum
cd ..
@@ -25,7 +28,7 @@
for lang in $LANGS
do
mkdir -p Translation-files_new/dists/$distribution/main/i18n/
- ./file2Translation.pl $distribution $lang > Translation-files_new/dists/$distribution/main/i18n/Translation-$lang
+ ./file2Translation.pl $distribution $lang | uniq > Translation-files_new/dists/$distribution/main/i18n/Translation-$lang
echo `date`: create the $distribution/Translation-$lang
done
cp packagelist/timestamp packagelist/timestamp.gpg Translation-files_new/
More information about the Debian-l10n-commits
mailing list