Do not use two warnings when one will do
authorBruce Korb <bkorb@gnu.org>
Sat, 19 May 2001 22:43:38 +0000 (22:43 +0000)
committerBruce Korb <korbb@gcc.gnu.org>
Sat, 19 May 2001 22:43:38 +0000 (22:43 +0000)
From-SVN: r42323

gcc/ChangeLog
gcc/fixinc/genfixes

index 3e2e2abaadac53811542b7afd6c7cb8294f56ee1..5998040f16afa1efeabc3bf6ebb2cb8a1b0c4fb1 100644 (file)
@@ -1,3 +1,7 @@
+2001-05-19  Bruce Korb  <bkorb@gnu.org>
+
+       * fixinc/genfixes: no need for two warnings
+
 2001-05-19  Mark Mitchell  <mark@codesourcery.com>
 
        * jump.c (jump_optimize_1): Tidy.
index d556de6a6ff69597db4fb28de78b1144e821ba69..a47e091db7a8383569f81886a46f560a7cf56995 100755 (executable)
@@ -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
   ;;