summaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap
diff options
context:
space:
mode:
authorjperkin <jperkin>2017-02-01 10:14:09 +0000
committerjperkin <jperkin>2017-02-01 10:14:09 +0000
commitb339d2da1343e86fc58121a96073dca52d26f38d (patch)
tree1c4664b46d10f106145c4776ccb99131e6f5e112 /bootstrap/bootstrap
parent435ae88170e0cb0ef3f1ff1aaf6e5cded93f6a33 (diff)
downloadpkgsrc-b339d2da1343e86fc58121a96073dca52d26f38d.tar.gz
Simplify and optimise previous.
Diffstat (limited to 'bootstrap/bootstrap')
-rwxr-xr-xbootstrap/bootstrap14
1 files changed, 6 insertions, 8 deletions
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 <agc@NetBSD.org>
# 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)