[Po4a-commits] "po4a Build.PL, 1.36, 1.37 html-build-upload.sh, 1.20, 1.21 changelog, 1.350, 1.351"
Nicolas FRANCOIS
nekral-guest at alioth.debian.org
Wed Apr 2 20:31:04 UTC 2008
Update of /cvsroot/po4a/po4a
In directory alioth:/tmp/cvs-serv7389
Modified Files:
Build.PL html-build-upload.sh changelog
Log Message:
* Build.PL, html-build-upload.sh: Generate the POT with the
--msgid-bugs-address, --package-name, and --package-version
options (with po4a and xgettext).
Index: html-build-upload.sh
===================================================================
RCS file: /cvsroot/po4a/po4a/html-build-upload.sh,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- html-build-upload.sh 19 Mar 2008 21:00:28 -0000 1.20
+++ html-build-upload.sh 2 Apr 2008 20:31:01 -0000 1.21
@@ -37,8 +37,11 @@
mkdir html.gen/man/man3pm
mkdir html.gen/man/man7
+libver=$(grep '$VERSION=' lib/Locale/Po4a/TransTractor.pm | \
+ sed -e 's/^.*"\([^"]*\)".*/\1/');
+
echo "Generate the web pages translations with po4a"
-PERLLIB=lib ./po4a --previous -v po/html.cfg
+PERLLIB=lib ./po4a --previous -v --msgid-bugs-address po4a-devel at lists.alioth.debian.org --package-name po4a --package-version $libver po/html.cfg
find html.gen -name "*.pl" |
while read f
@@ -200,8 +203,7 @@
gen_translations po/www > html.gen/table_translations_www.php
echo Extract the version
-grep '$VERSION=' lib/Locale/Po4a/TransTractor.pm | \
- sed -e 's/^.*"\([^"]*\)".*/\1/' > html.gen/version.php
+echo $libver > html.gen/version.php
get_language() {
# FIXME: use gettext
Index: Build.PL
===================================================================
RCS file: /cvsroot/po4a/po4a/Build.PL,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- Build.PL 19 Mar 2008 22:16:28 -0000 1.36
+++ Build.PL 2 Apr 2008 20:31:01 -0000 1.37
@@ -36,7 +36,15 @@
unless ($self->up_to_date(\@files, "po/bin/po4a.pot")) {
print "XX Update po/bin/po4a.pot\n";
my $podfiles = join ("", map {" ../../".$_ } @files);
- system("cd po/bin; xgettext --from-code=utf-8 -L Perl $podfiles -o po4a.pot.new") && die;
+ my $cmd = "cd po/bin; xgettext ";
+ $cmd .= "--from-code=utf-8 ";
+ $cmd .= "-L Perl ";
+ $cmd .= "--msgid-bugs-address po4a-devel\@lists.alioth.debian.org ";
+ $cmd .= "--package-name po4a ";
+ $cmd .= "--package-version ".$self->dist_version()." ";
+ $cmd .= "$podfiles ";
+ $cmd .= "-o po4a.pot.new";
+ system($cmd) && die;
if ( -e "po/bin/po4a.pot") {
$diff = qx(diff -q -I'#:' -I'POT-Creation-Date:' -I'PO-Revision-Date:' po/bin/po4a.pot po/bin/po4a.pot.new);
if ( $diff eq "" ) {
@@ -87,7 +95,16 @@
}
sub ACTION_manpo {
- system("PERL5LIB=lib perl po4a --previous --no-translations po/pod.cfg")
+ my $self = shift;
+
+ my $cmd = "PERL5LIB=lib perl po4a "; # Use this version of po4a
+ $cmd .= "--previous ";
+ $cmd .= "--no-translations ";
+ $cmd .= "--msgid-bugs-address po4a-devel\@lists.alioth.debian.org ";
+ $cmd .= "--package-name po4a ";
+ $cmd .= "--package-version ".$self->dist_version()." ";
+ $cmd .= "po/pod.cfg";
+ system($cmd)
and die;
}
sub ACTION_man {
Index: changelog
===================================================================
RCS file: /cvsroot/po4a/po4a/changelog,v
retrieving revision 1.350
retrieving revision 1.351
diff -u -d -r1.350 -r1.351
--- changelog 2 Apr 2008 20:19:07 -0000 1.350
+++ changelog 2 Apr 2008 20:31:01 -0000 1.351
@@ -1,5 +1,11 @@
2008-04-02 Nicolas François <nicolas.francois at centraliens.net>
+ * Build.PL, html-build-upload.sh: Generate the POT with the
+ --msgid-bugs-address, --package-name, and --package-version
+ options (with po4a and xgettext).
+
+2008-04-02 Nicolas François <nicolas.francois at centraliens.net>
+
* NEWS, po4a: Add options --package-name and --package-version
(similar to xgettext's options).
* lib/Locale/Po4a/Po.pm: Add support for the --package-name and
More information about the Po4a-commits
mailing list