summaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2012-06-15 09:54:41 +0000
committerjperkin <jperkin@pkgsrc.org>2012-06-15 09:54:41 +0000
commitbb2f76b393da8801ab53a628a1c0751c1b04ce73 (patch)
treeed8323024f34d1c266c8a24e27342400af18bc75 /bootstrap/bootstrap
parent0ae2798867495dbc2cbe661c7185b1242535fc33 (diff)
downloadpkgsrc-bb2f76b393da8801ab53a628a1c0751c1b04ce73.tar.gz
Use native ksh93 on Solaris 11 and derivatives.
Diffstat (limited to 'bootstrap/bootstrap')
-rwxr-xr-xbootstrap/bootstrap9
1 files changed, 7 insertions, 2 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 40a05f25866..dde7bb3daae 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.176 2012/06/08 12:15:29 jperkin Exp $
+# $NetBSD: bootstrap,v 1.177 2012/06/15 09:54:41 jperkin Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -677,7 +677,12 @@ SunOS)
else
need_sed=yes
fi
- need_ksh=yes
+ if [ "`uname -r`" = "5.11" ]; then
+ bootstrap_sh=${SH:-/bin/ksh}
+ bootstrap_sh_set=set
+ else
+ need_ksh=yes
+ fi
set_opsys=no
idprog="/usr/xpg4/bin/id"
groupsprog="${idprog} -gn"