summaryrefslogtreecommitdiff
path: root/contrib/check_GNU_style.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/check_GNU_style.sh')
-rwxr-xr-xcontrib/check_GNU_style.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/check_GNU_style.sh b/contrib/check_GNU_style.sh
index eeff48f8c4c..2c4d9e24fe6 100755
--- a/contrib/check_GNU_style.sh
+++ b/contrib/check_GNU_style.sh
@@ -39,6 +39,13 @@ test $# -eq 0 && usage
nfiles=$#
files="$*"
+for f in $files; do
+ if [ "$f" != "-" ] && [ ! -f "$f" ]; then
+ echo "error: could not read file: $f"
+ exit 1
+ fi
+done
+
inp=check_GNU_style.inp
tmp=check_GNU_style.tmp