aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2013-09-16 20:30:34 +0000
committerJörg Mayer <jmayer@loplof.de>2013-09-16 20:30:34 +0000
commit4e74f3a3c359049dc184b7fa49c7237349e23911 (patch)
treed968010cf877d596449bc383627fa6ded2daa1a9 /tools
parent038d3b0a56ad7f2f0b9b50a66a5581cf2ec5a716 (diff)
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')
-rwxr-xr-xtools/checkAPIs.pl5
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;