aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc/genfixes
diff options
context:
space:
mode:
authorBruce Korb <bkorb@gnu.org>2001-05-19 22:43:38 +0000
committerBruce Korb <korbb@gcc.gnu.org>2001-05-19 22:43:38 +0000
commitc322646257db069b29503848268d49d7e5ea85b1 (patch)
treeecbf0957d6983f784baef91e2678c60d9f0fc0b4 /gcc/fixinc/genfixes
parent85b94003e1c2cd725f08c9765733d1e8827e213a (diff)
downloadgcc-c322646257db069b29503848268d49d7e5ea85b1.zip
gcc-c322646257db069b29503848268d49d7e5ea85b1.tar.gz
gcc-c322646257db069b29503848268d49d7e5ea85b1.tar.bz2
Do not use two warnings when one will do
From-SVN: r42323
Diffstat (limited to 'gcc/fixinc/genfixes')
-rwxr-xr-xgcc/fixinc/genfixes18
1 files changed, 5 insertions, 13 deletions
diff --git a/gcc/fixinc/genfixes b/gcc/fixinc/genfixes
index d556de6..a47e091 100755
--- a/gcc/fixinc/genfixes
+++ b/gcc/fixinc/genfixes
@@ -66,25 +66,17 @@ fi
AG="autogen $AG"
set -e
-if [ -z "`${AG} -v | fgrep 'Ver. 5.'`" ]
-then
- echo "Your AutoGen is either out of date or not available" >&2
- echo "Please get AutoGen5 from ftp.gnu.org/gnu/autogen" >&2
- touch $@
- exit 0
-fi
-
case "$1" in
fixincl.x | */fixincl.x )
- if (${AG} --help > /dev/null 2>&1)
+ if [ -z "`${AG} -v | fgrep 'Ver. 5.'`" ]
then
- echo AutoGen-ing fixincl.x
- $AG inclhack.def
- else
- echo "AutoGen does not appear to be correctly installed."
+ echo "AutoGen appears to be out of date or not correctly installed."
echo "Please download and install:"
echo " ftp://gcc.gnu.org/pub/gcc/infrastructure/autogen.tar.gz"
touch fixincl.x
+ else
+ echo AutoGen-ing fixincl.x
+ $AG inclhack.def
fi
;;