summaryrefslogtreecommitdiff
path: root/contrib/dg-cmp-results.sh
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-20 08:41:32 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-20 08:41:32 +0000
commit03248b193e6bac947221d44cc4dff913183cb5ae (patch)
treee2c9a37069b356f4cb760951f499abdac631e293 /contrib/dg-cmp-results.sh
parentd7cbb3ef81425f9adec25287428049a99320c479 (diff)
downloadgcc-03248b193e6bac947221d44cc4dff913183cb5ae.tar.gz
2008-11-20 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r142033 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@142036 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib/dg-cmp-results.sh')
-rwxr-xr-xcontrib/dg-cmp-results.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/contrib/dg-cmp-results.sh b/contrib/dg-cmp-results.sh
index 753005db204..d291769547d 100755
--- a/contrib/dg-cmp-results.sh
+++ b/contrib/dg-cmp-results.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright (C) 2006 Free Software Foundation
+# Copyright (C) 2006, 2008 Free Software Foundation
#
# Analyze changes in GCC DejaGNU test logs for binutils, gcc, gdb, etc.
# Original version written in 2005 by James Lemke <jwlemke@wasabisystems.com>.
@@ -27,11 +27,21 @@ while test "$1" = "-v"; do
shift
done
-if test $# -ne 3 -o ! -f "$2" -o ! -f "$3"; then
+if test $# -ne 3 ; then
usage
exit 1
fi
+if test ! -f "$2"; then
+ echo "unable to open $2" >&2
+ exit 1
+fi
+
+if test ! -f "$3"; then
+ echo "unable to open $3" >&2
+ exit 1
+fi
+
# Command differences for various platforms.
case `uname -s` in
Darwin|NetBSD)