Commit 0648b807 by Tom de Vries Committed by Tom de Vries

check_GNU_style.sh: Check file presence

2015-05-12  Tom de Vries  <tom@codesourcery.com>

	* check_GNU_style.sh: Check if files exists.

From-SVN: r223085
parent 4171ffe9
2015-05-12 Tom de Vries <tom@codesourcery.com>
* check_GNU_style.sh: Check if files exists.
2015-05-12 Tom de Vries <tom@codesourcery.com>
* check_GNU_style.sh: Don't use a filename prefix if we're only
processing one patch file.
......
......@@ -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
......
Markdown is supported
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