mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 01:50:34 +08:00
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
This commit is contained in:
parent
4171ffe90d
commit
0648b80726
@ -1,3 +1,7 @@
|
||||
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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user