From 468345fe9be03fca755a5493ddf602e8309aca9a Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 12 Jan 2017 13:47:19 +1100 Subject: [PATCH] win2utils/Configure report modify file list [RT #43994] (cherry picked from commit 260ca42f9666044339729165fa43847ff233b671) --- win32utils/Configure | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/win32utils/Configure b/win32utils/Configure index 5453fb077f..ee548d6ab1 100644 --- a/win32utils/Configure +++ b/win32utils/Configure @@ -564,6 +564,7 @@ my $iconv_path = " --idn-- "; my $use_vcredist = "yes"; my $vcredist_path = " --infer-- "; my $cross_compile = "no"; +my $want_checkfiles = "no"; # no arguments -> usage @@ -605,6 +606,8 @@ foreach (@ARGV) { $want_x64 = "yes"; } elsif (/^clean$/i) { $want_clean = "yes"; + } elsif (/^checkfiles$/i) { + $want_checkfiles = "yes"; } else { $want_unknown = "yes"; $unknown_value = $_; @@ -617,6 +620,22 @@ if ($legacy_only && ($want_x64 ne "yes")) { $want_win32 = "yes"; } +if ($want_checkfiles eq "yes") { + foreach (@filelist) { + next if -r $_ . ".in"; + s/\\/\//g; + next if -r $_ . ".in"; + print "missing $_.in from filelist\n"; + } + foreach (@projectlist) { + next if -r $_ . ".in"; + s/\\/\//g; + next if -r $_ . ".in"; + print "missing $_.in from projectlist\n"; + } + exit(0); +} + # configure the platform if (($want_win32 eq "yes") && ($want_x64 eq "yes")) {