summaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap
diff options
context:
space:
mode:
authorjperkin <jperkin>2012-06-15 09:54:41 +0000
committerjperkin <jperkin>2012-06-15 09:54:41 +0000
commit14668f8d9b50c4917f756a28eef8f9a3b3397ad2 (patch)
treeed8323024f34d1c266c8a24e27342400af18bc75 /bootstrap/bootstrap
parent656decae5dc57c4146152a63305847e9f095e56e (diff)
downloadpkgsrc-14668f8d9b50c4917f756a28eef8f9a3b3397ad2.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"