[Gnucash-changes] r13066 - gnucash/trunk - When generating POTFILES.in, don't include files we don't want to translate.

Chris Shoemaker chris at cvs.gnucash.org
Wed Feb 1 15:32:12 EST 2006


Author: chris
Date: 2006-02-01 15:32:11 -0500 (Wed, 01 Feb 2006)
New Revision: 13066
Trac: http://svn.gnucash.org/trac/changeset/13066

Modified:
   gnucash/trunk/make-gnucash-potfiles.in
Log:
   When generating POTFILES.in, don't include files we don't want to translate.


Modified: gnucash/trunk/make-gnucash-potfiles.in
===================================================================
--- gnucash/trunk/make-gnucash-potfiles.in	2006-02-01 20:30:14 UTC (rev 13065)
+++ gnucash/trunk/make-gnucash-potfiles.in	2006-02-01 20:32:11 UTC (rev 13066)
@@ -16,6 +16,8 @@
 ## For perl files add the following:
 # -o -name '*.pl'
 
+my @skipped_files = `grep -v \# po/POTFILES.skip`;
+
 chomp(my $cwd = `pwd`);
 
 # Since we don't have any cvsignore files anymore, add patterns here
@@ -57,10 +59,14 @@
   my ($name, $path) = fileparse($file);
   $path =~ s/^\.\///;
 
-  foreach my $one_ignore (@ignorepatterns) {
+  foreach my $one_ignore (@ignorepatterns, @skipped_files) {
     chomp($one_ignore);
     next unless $one_ignore;
 
+    if ($file =~ m/$one_ignore/) {
+      $ignores{$path . $name} = 1;
+    }
+
     if ($name =~ m/$one_ignore/) {
       $ignores{$path . $name} = 1;
       #print "not $name\n";
@@ -78,7 +84,7 @@
   print $path . $name . "\n";
 }
 
-# These are additionally added in any case
+# These are also added, even though they are outside of src/
 print "lib/libqof/backend/file/qsf-backend.c\n";
 print "intl-scm/guile-strings.c\n";
 print "doc/tip_of_the_day.list.in\n"



More information about the gnucash-changes mailing list