summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorhans <hans>2013-01-31 22:55:21 +0000
committerhans <hans>2013-01-31 22:55:21 +0000
commit5de61e57c6cec1c30e55a8fa1279d288953bd0ae (patch)
treeba1df9a810879f82767e9dede2eae890b23ab819 /bootstrap
parent8b727732158bdc4c9968dc227395ae1a1288590b (diff)
downloadpkgsrc-5de61e57c6cec1c30e55a8fa1279d288953bd0ae.tar.gz
Use /usr/bin/bash on all SunOS 5.11 variants if it exists. Fall back to
shells/pdksh in all other cases, native /bin/ksh is not good enough.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/bootstrap16
1 files changed, 4 insertions, 12 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 08a6c558758..5072f8d1959 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.182 2013/01/06 17:33:24 cheusov Exp $
+# $NetBSD: bootstrap,v 1.183 2013/01/31 22:55:21 hans Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -681,17 +681,9 @@ SunOS)
else
need_sed=yes
fi
- if [ "`uname -r`" = "5.11" ]; then
- case "`uname -v`" in
- joyent_*)
- bootstrap_sh=${SH:-/usr/bin/bash}
- bootstrap_sh_set=set
- ;;
- *)
- bootstrap_sh=${SH:-/bin/ksh}
- bootstrap_sh_set=set
- ;;
- esac
+ if [ "`uname -r`" = "5.11" -a -x "/usr/bin/bash" ]; then
+ bootstrap_sh=${SH:-/usr/bin/bash}
+ bootstrap_sh_set=set
else
need_ksh=yes
fi