diff options
author | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-12 16:23:11 +0000 |
---|---|---|
committer | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-12 16:23:11 +0000 |
commit | 4945bb803def618c9f93fe9b5b811d435c91af03 (patch) | |
tree | f1ea033908ec4247983f77b11fd75d10453e7542 /contrib | |
parent | 8e7b874b68f60f7ab2e826f25cddf55da0fe33ee (diff) | |
download | gcc-4945bb803def618c9f93fe9b5b811d435c91af03.tar.gz |
check_GNU_style.sh: Check file presence
2015-05-12 Tom de Vries <tom@codesourcery.com>
* check_GNU_style.sh: Check if files exists.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223085 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ChangeLog | 4 | ||||
-rwxr-xr-x | contrib/check_GNU_style.sh | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 774e46f96f8..605950a1c48 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,5 +1,9 @@ 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. 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 |