mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-26 06:45:29 +08:00
dg-cmp-results.sh: Do not print usage if either .sum file cannot be opened...
* dg-cmp-results.sh: Do not print usage if either .sum file cannot be opened; print a more meaningful error instead. From-SVN: r141979
This commit is contained in:
parent
8afb060511
commit
7a401a0df3
@ -1,3 +1,8 @@
|
|||||||
|
2008-11-18 Ben Elliston <bje@au.ibm.com>
|
||||||
|
|
||||||
|
* dg-cmp-results.sh: Do not print usage if either .sum file cannot
|
||||||
|
be opened; print a more meaningful error instead.
|
||||||
|
|
||||||
2008-10-24 Janis Johnson <janis187@us.ibm.com>
|
2008-10-24 Janis Johnson <janis187@us.ibm.com>
|
||||||
Jakub Jelinek <jakub@redhat.com>
|
Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/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.
|
# Analyze changes in GCC DejaGNU test logs for binutils, gcc, gdb, etc.
|
||||||
# Original version written in 2005 by James Lemke <jwlemke@wasabisystems.com>.
|
# Original version written in 2005 by James Lemke <jwlemke@wasabisystems.com>.
|
||||||
@ -27,11 +27,21 @@ while test "$1" = "-v"; do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
if test $# -ne 3 -o ! -f "$2" -o ! -f "$3"; then
|
if test $# -ne 3 ; then
|
||||||
usage
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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.
|
# Command differences for various platforms.
|
||||||
case `uname -s` in
|
case `uname -s` in
|
||||||
Darwin|NetBSD)
|
Darwin|NetBSD)
|
||||||
|
Loading…
Reference in New Issue
Block a user