From 4e74f3a3c359049dc184b7fa49c7237349e23911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Mayer?= Date: Mon, 16 Sep 2013 20:30:34 +0000 Subject: 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 --- tools/checkAPIs.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools') 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; -- cgit v1.2.3