[Po4a-commits] "po4a po4a,1.50,1.51"
Nicolas FRANCOIS
nekral-guest at alioth.debian.org
Sun Feb 26 20:14:10 UTC 2006
Update of /cvsroot/po4a/po4a
In directory haydn:/tmp/cvs-serv13617
Modified Files:
po4a
Log Message:
try to re-generate the POT if the config file was modified.
Index: po4a
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- po4a 25 Feb 2006 22:59:20 -0000 1.50
+++ po4a 26 Feb 2006 20:14:08 -0000 1.51
@@ -576,14 +576,24 @@
# The POT needs to be re-generated if a master document is more recent
# than the POT.
foreach my $master (keys %document) {
- if ( ($po4a_opts{"force"})
- or ((stat $master)[9] > $modtime) ) {
+ if ((stat $master)[9] >= $modtime) {
$update_pot_file = 1;
- print wrap_msg(gettext("Updating %s:"), $pot_filename)
- if $po4a_opts{"verbose"};
last;
}
}
+
+ if ((stat $config_file)[9] > $modtime) {
+ # The configuration file was modified after the POT.
+ # Maybe a new document, or new options
+ $update_pot_file = 1;
+ }
+
+ if ($po4a_opts{"force"}) {
+ $update_pot_file = 1;
+ }
+
+ print wrap_msg(gettext("Updating %s:"), $pot_filename)
+ if ($update_pot_file and $po4a_opts{"verbose"});
} else {
print wrap_msg(gettext("Creating %s:"), $pot_filename)
if $po4a_opts{"verbose"};
More information about the Po4a-commits
mailing list