diff options
author | Rodney Dawes <dobey@gnome.org> | 2009-04-20 21:58:31 -0400 |
---|---|---|
committer | Rodney Dawes <dobey@gnome.org> | 2009-04-20 21:58:31 -0400 |
commit | 042c82a3a7bafc968b4f5c7d11abb4ca21ede4b7 (patch) | |
tree | e29f2b9f7d38fb10fae9f5aa6d17c7bea9d61765 /intltool-update.in | |
parent | 4462e8eaf9b9b98ff03afd51119e5e6f0c977857 (diff) | |
download | intltool-042c82a3a7bafc968b4f5c7d11abb4ca21ede4b7.tar.gz |
Remove ignored files from the lists of files to check in -m mode
Fixes http://bugzilla.gnome.org/show_bug.cgi?id=569051
Diffstat (limited to 'intltool-update.in')
-rw-r--r-- | intltool-update.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/intltool-update.in b/intltool-update.in index 74699f3..262027d 100644 --- a/intltool-update.in +++ b/intltool-update.in @@ -313,6 +313,17 @@ sub isNotValidMissing return if $file =~ /^$varhash{"PACKAGE"}-$varhash{"VERSION"}\/.*$/; } +sub removeFromArray +{ + my ($file, @array) = @_; + + my $i = 0; + foreach my $potfile (@array) { + delete $array[$i] if $potfile =~ m/$file/; + $i++; + } +} + sub FindLeftoutFiles { my (@buf_i18n_plain, @@ -390,10 +401,19 @@ sub FindLeftoutFiles $ignored =~ s/^$SRCDIR\///g; $ignored =~ s/^..\///g; $ignored =~ s/$/\n/g; + + removeFromArray ($ignored, @buf_i18n_plain); + removeFromArray ($ignored, @buf_i18n_xml); + removeFromArray ($ignored, @buf_i18n_ini); + removeFromArray ($ignored, @buf_i18n_xml_unmarked); push @buf_potfiles_ignore, $ignored; } next; } + removeFromArray ($_, @buf_i18n_plain); + removeFromArray ($_, @buf_i18n_xml); + removeFromArray ($_, @buf_i18n_ini); + removeFromArray ($_, @buf_i18n_xml_unmarked); push @buf_potfiles_ignore, $_; } close FILE; |