From c95fec5e5bd0c4eb439406c90e1954570ab080db Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 5 Aug 2011 21:01:39 +0200 Subject: keep a single copy of config-win32.h in version control repository - followup Allow configure builds to generate src/config-win32.h Skip checksrc on src/config-win32.h contents already checked at lib/config-win32.h Allow multiple -W in checksrc.pl --- lib/checksrc.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/checksrc.pl b/lib/checksrc.pl index c3e01305e..1aecd988d 100755 --- a/lib/checksrc.pl +++ b/lib/checksrc.pl @@ -62,7 +62,7 @@ while(1) { next; } elsif($file =~ /-W(.*)/) { - $wlist = $1; + $wlist .= " $1 "; $file = shift @ARGV; next; } @@ -79,7 +79,7 @@ if(!$file) { } do { - if($file ne "$wlist") { + if($wlist !~ / $file /) { my $fullname = $file; $fullname = "$dir/$file" if ($fullname !~ '^\.?\.?/'); scanfile($fullname); -- cgit v1.2.3