From b339d2da1343e86fc58121a96073dca52d26f38d Mon Sep 17 00:00:00 2001 From: jperkin Date: Wed, 1 Feb 2017 10:14:09 +0000 Subject: Simplify and optimise previous. --- bootstrap/bootstrap | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'bootstrap/bootstrap') diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index 2cd6055ab06..0402fd6a349 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.238 2017/02/01 09:54:21 sevan Exp $ +# $NetBSD: bootstrap,v 1.239 2017/02/01 10:14:09 jperkin Exp $ # # Copyright (c) 2001-2011 Alistair Crooks # All rights reserved. @@ -714,13 +714,11 @@ Linux) fi need_sed=no set_opsys=no - case `uname -m` in - ppc64le) - machine_arch=powerpc64le - ;; - *) - machine_arch=`uname -m | sed -e 's/i.86/i386/'` - ;; + machine_arch=`uname -m` + # Override machine_arch where required. + case "$machine_arch" in + i?86) machine_arch=i386 ;; + ppc64le) machine_arch=powerpc64le ;; esac ;; Minix) -- cgit v1.2.3