From d814359990c998c3f8b2175053a9c23fb5c34624 Mon Sep 17 00:00:00 2001 From: Chris Shoemaker Date: Wed, 1 Feb 2006 20:32:11 +0000 Subject: [PATCH] When generating POTFILES.in, don't include files we don't want to translate. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13066 57a11ea4-9604-0410-9ed3-97b8803252fd --- make-gnucash-potfiles.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/make-gnucash-potfiles.in b/make-gnucash-potfiles.in index 79e3b73ede..7660e9a4e8 100644 --- a/make-gnucash-potfiles.in +++ b/make-gnucash-potfiles.in @@ -16,6 +16,8 @@ my @possible_files = `find src -name '*.c' -o -name '*.glade' \\ ## 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 @@ foreach my $file (@possible_files) { 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 @@ foreach my $file (@possible_files) { 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"