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
This commit is contained in:
Chris Shoemaker 2006-02-01 20:32:11 +00:00
parent 53b5dc8ef7
commit d814359990

View File

@ -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"