[Po4a-commits] r2650 - /trunk/Po4aBuilder.pm

barbier at users.alioth.debian.org barbier at users.alioth.debian.org
Sat Oct 20 17:02:06 UTC 2012


Author: barbier
Date: Sat Oct 20 17:02:05 2012
New Revision: 2650

URL: http://svn.debian.org/wsvn/po4a/?sc=1&rev=2650
Log:
Use the --force flag of po4a only when running the 'dist' target

po4a-pod.pot is currently regenerated during each build, this is
annoying.

Modified:
    trunk/Po4aBuilder.pm

Modified: trunk/Po4aBuilder.pm
URL: http://svn.debian.org/wsvn/po4a/trunk/Po4aBuilder.pm?rev=2650&op=diff
==============================================================================
--- trunk/Po4aBuilder.pm (original)
+++ trunk/Po4aBuilder.pm Sat Oct 20 17:02:05 2012
@@ -144,6 +144,7 @@
 sub ACTION_dist {
     my ($self) = @_;
 
+    $ENV{PO4AFLAGS} ||= '--force';
     $self->depends_on('test');
     $self->depends_on('binpo');
     $self->depends_on('manpo');
@@ -166,7 +167,6 @@
     $self->make_files_writable("po/pod");
 
     my $cmd = "PERL5LIB=lib perl po4a "; # Use this version of po4a
-    $cmd .= "--force ";
     $cmd .= "--previous ";
     $cmd .= "--no-translations ";
     $cmd .= "--msgid-bugs-address po4a-devel\@lists.alioth.debian.org ";




More information about the Po4a-commits mailing list