diff options
author | Jörg Mayer <jmayer@loplof.de> | 2013-09-16 20:30:34 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2013-09-16 20:30:34 +0000 |
commit | 4e74f3a3c359049dc184b7fa49c7237349e23911 (patch) | |
tree | d968010cf877d596449bc383627fa6ded2daa1a9 /tools/checkAPIs.pl | |
parent | 038d3b0a56ad7f2f0b9b50a66a5581cf2ec5a716 (diff) | |
download | wireshark-4e74f3a3c359049dc184b7fa49c7237349e23911.tar.gz |
Don't print a warning about missing svn id when the argument is not
a file. Warn about the "wrong" filetype and continue
svn path=/trunk/; revision=52105
Diffstat (limited to 'tools/checkAPIs.pl')
-rwxr-xr-x | tools/checkAPIs.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl index 5a9da1131d..90da6e1713 100755 --- a/tools/checkAPIs.pl +++ b/tools/checkAPIs.pl @@ -1935,7 +1935,10 @@ while ($_ = $ARGV[0]) # delete leading './' $filename =~ s{ ^ \. / } {}xo; - + unless (-f $filename) { + print STDERR "Warning: $filename is not of type file - skipping.\n"; + next; + } # Read in the file (ouch, but it's easier that way) open(FC, $filename) || die("Couldn't open $filename"); $line = 1; |