[Debian-l10n-commits] r2729 - in /ddtp-web: Changelog file2Translation.pl file2Translation_udd.pl file2Translation_udd.sh
nekral-guest at users.alioth.debian.org
nekral-guest at users.alioth.debian.org
Tue Jul 26 22:13:41 UTC 2011
Author: nekral-guest
Date: Tue Jul 26 22:13:40 2011
New Revision: 2729
URL: http://svn.debian.org/wsvn/?sc=1&rev=2729
Log:
* file2Translation.pl: Add option --with-version to indicate the
package version in the Translation file.
* file2Translation_udd.sh: use file2Translation.pl --with-version
instead of file2Translation_udd.pl.
* file2Translation_udd.pl: Removed.
Removed:
ddtp-web/file2Translation_udd.pl
Modified:
ddtp-web/Changelog
ddtp-web/file2Translation.pl
ddtp-web/file2Translation_udd.sh
Modified: ddtp-web/Changelog
URL: http://svn.debian.org/wsvn/ddtp-web/Changelog?rev=2729&op=diff
==============================================================================
--- ddtp-web/Changelog (original)
+++ ddtp-web/Changelog Tue Jul 26 22:13:40 2011
@@ -1,3 +1,11 @@
+2011-07-26 Nicolas Francois <nicolas.francois at centraliens.net>
+
+ * file2Translation.pl: Add option --with-version to indicate the
+ package version in the Translation file.
+ * file2Translation_udd.sh: use file2Translation.pl --with-version
+ instead of file2Translation_udd.pl.
+ * file2Translation_udd.pl: Removed.
+
2011-07-26 Nicolas Francois <nicolas.francois at centraliens.net>
* file2Translation_udd.sh: Added missing script.
Modified: ddtp-web/file2Translation.pl
URL: http://svn.debian.org/wsvn/ddtp-web/file2Translation.pl?rev=2729&op=diff
==============================================================================
--- ddtp-web/file2Translation.pl (original)
+++ ddtp-web/file2Translation.pl Tue Jul 26 22:13:40 2011
@@ -2,6 +2,14 @@
use diagnostics;
use strict;
+
+# If --with-version is provided as first argument, add a Version field in
+# the Translation file.
+my $WITH_VERSION = 0;
+if ($ARGV[0] eq "--with-version") {
+ shift @ARGV;
+ $WITH_VERSION = 1;
+}
my $dists= shift(@ARGV);
my $lang= shift(@ARGV);
@@ -69,6 +77,7 @@
if ($translation) {
($description_md5)=get_packageinfos($description_id);
print "Package: $package\n";
+ print "Version: $version\n" if $WITH_VERSION;
print "Description-md5: $description_md5\n";
print "Description-$lang: $translation\n";
}
Modified: ddtp-web/file2Translation_udd.sh
URL: http://svn.debian.org/wsvn/ddtp-web/file2Translation_udd.sh?rev=2729&op=diff
==============================================================================
--- ddtp-web/file2Translation_udd.sh (original)
+++ ddtp-web/file2Translation_udd.sh Tue Jul 26 22:13:40 2011
@@ -16,7 +16,7 @@
for lang in $LANGS
do
mkdir -p Translation_udd/dists/$distribution/main/i18n/
- ./file2Translation_udd.pl $distribution $lang | uniq | gzip > Translation_udd/dists/$distribution/main/i18n/Translation-$lang.gz
+ ./file2Translation.pl --with-version $distribution $lang | uniq | gzip > Translation_udd/dists/$distribution/main/i18n/Translation-$lang.gz
echo `date`: create the $distribution/Translation-$lang
done
cp packagelist/timestamp packagelist/timestamp.gpg Translation_udd/
More information about the Debian-l10n-commits
mailing list