From 0d69f91b9261c4cfd53f4e2b6703548e241ff66f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 28 Nov 2012 11:28:24 +0100 Subject: [PATCH] MT9161: Followup change the maching test you can specify -f advsearch.tt => translate all files with a filename containing 'advsearch.tt' or -f search => will translate acqui/histsearch.tt, acqui/z3950_search.tt, etc. --- misc/translator/tmpl_process3.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/translator/tmpl_process3.pl b/misc/translator/tmpl_process3.pl index f1ae0b0..8961f5c 100755 --- a/misc/translator/tmpl_process3.pl +++ b/misc/translator/tmpl_process3.pl @@ -148,7 +148,7 @@ sub listfiles { } elsif (-f $path) { my $basename = basename $path; push @it, $path - if ( not @$filenames or ( grep {/$basename/} @$filenames ) ) + if ( not @$filenames or ( grep { $basename =~ /$_/ } @$filenames ) ) and (!defined $type || $dirent =~ /\.(?:$type)$/) || $action eq 'install'; } elsif (-d $path && $recursive_p) { push @it, listfiles($path, $type, $action, $filenames); -- 1.7.10.4