summaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-12-28 10:13:01 +0000
committernia <nia@pkgsrc.org>2021-12-28 10:13:01 +0000
commitef5cb3807d510969b9edd225d3ae037ff0506443 (patch)
tree151f11748ccb2c091543a10120fcbb34b9df92d0 /bootstrap/bootstrap
parent10cc00de0651eff157199fbf17ef7992ae4538d0 (diff)
downloadpkgsrc-ef5cb3807d510969b9edd225d3ae037ff0506443.tar.gz
bootstrap: On SCO System V variants, we need either mksh or bash.
from Boyd Lynn Gerber.
Diffstat (limited to 'bootstrap/bootstrap')
-rwxr-xr-xbootstrap/bootstrap14
1 files changed, 13 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 3d8a8dae1a2..a326e159cee 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.305 2021/12/27 14:16:30 schmonz Exp $
+# $NetBSD: bootstrap,v 1.306 2021/12/28 10:13:01 nia Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -799,6 +799,12 @@ SCO_SV)
need_awk=yes
need_bsd_install=yes
need_sed=yes
+ if [ -x "/usr/bin/bash" ]; then
+ bootstrap_sh=${SH:-/usr/bin/bash}
+ bootstrap_sh_set=set
+ else
+ need_mksh=yes
+ fi
whoamiprog='id -u'
groupsprog='id -g'
# /bin/sh under OpenServer 5.0.7/3.2 breaks bmake tests.
@@ -833,6 +839,12 @@ UnixWare)
need_mkdir=yes
need_awk=yes
need_sed=yes
+ if [ -x "/usr/bin/bash" ]; then
+ bootstrap_sh=${SH:-/usr/bin/bash}
+ bootstrap_sh_set=set
+ else
+ need_mksh=yes
+ fi
whoamiprog=/usr/ucb/whoami
machine_arch=`uname -m`
CC="gcc -DUNIXWARE"; export CC