summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2013-01-31 22:55:21 +0000
committerhans <hans@pkgsrc.org>2013-01-31 22:55:21 +0000
commit2346907f99d0c0112d26e4af8381fcec2152e8d2 (patch)
treeba1df9a810879f82767e9dede2eae890b23ab819 /bootstrap
parent9a9acd4d1f155c3cb78629d0f9da33cd4b88a5c4 (diff)
downloadpkgsrc-2346907f99d0c0112d26e4af8381fcec2152e8d2.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