default the build machine triplet, if it is not provided
authorBruce Korb <bkorb@gnu.org>
Sun, 3 Dec 2000 20:40:17 +0000 (20:40 +0000)
committerBruce Korb <korbb@gcc.gnu.org>
Sun, 3 Dec 2000 20:40:17 +0000 (20:40 +0000)
From-SVN: r37979

gcc/ChangeLog
gcc/fixinc/mkfixinc.sh

index ffacec7b40b1e8c0859cc952ce81fe22bcf2571c..329031494ec425be0985cddb5bc3182fb76207e8 100644 (file)
@@ -1,3 +1,8 @@
+2000-12-03  Bruce Korb  <bkorb@gcc.org>
+
+       * fixinc/mkfixinc.sh(build machine): Sometimes, there is no canonical
+       build machine name.  Default to the target.
+
 2000-12-03  Laurynas Biveinis  <lauras@softhome.net>
 
        * Makefile.in: use $(build_canonical), not $(canonical_build).
index 0129157f84a3c4984baa33f5f1908135d2eaa482..16e8624655ebe17bd27b0c73ffbc31b283240eb8 100755 (executable)
@@ -5,14 +5,16 @@ machine=$2
 
 if [ -z "$build" ]
 then
-       echo No build system name given
-       exit 1
+       echo No target system name given
+       exit 1
 fi
 
+#  If we don't get two arguments, then assume both arguments
+#  are the same
+#
 if [ -z "$machine" ]
 then
-       echo No machine name given
-       exit 1
+       machine="$build"
 fi
 
 target=../fixinc.sh