Commit 7e09bbc0 authored by darin's avatar darin
Browse files

* Scripts/check-for-global-initializers: Fix case where executable doesn't exist at all

        so it doesn't give a perl exception (happens in clean builds, for example).



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19565 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6a2f4886
2007-02-11 Darin Adler <darin@apple.com>
* Scripts/check-for-global-initializers: Fix case where executable doesn't exist at all
so it doesn't give a perl exception (happens in clean builds, for example).
2007-02-10 David Kilzer <ddkilzer@webkit.org>
Reviewed by Adam.
......
......@@ -58,7 +58,10 @@ close LIST;
my $sawError = 0;
for my $file (sort @files) {
next if defined $executableAge && -M $file > $executableAge;
if (defined $executableAge) {
my $fileAge = -M $file;
next if defined $fileAge && $fileAge > $executableAge;
}
if (!open NM, "(nm '$file' | sed 's/^/STDOUT:/') 2>&1 |") {
print "Could not open $file\n";
$sawError = 1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment