Subject: CVS commit: src
To: None <source-changes@NetBSD.org>
From: Alan Barrett <apb@netbsd.org>
List: source-changes
Date: 09/29/2006 19:53:54
Module Name: src
Committed By: apb
Date: Fri Sep 29 19:53:54 UTC 2006
Modified Files:
src: build.sh
Log Message:
Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Try to guess a suitable value for HOST_SH, if it was not set in
the environment. First try host-specific heuristics (Solaris has
/usr/xpg4/bin/sh); then try to find the name of the shell that was used
to run build.sh itself (by parsing the output from ps -p $$ -o comm);
then fall back to "sh".
* Having found a value for HOST_SH, copy it to BSHELL and CONFIG_SHELL.
* Use ${HOST_SH} instead of /bin/sh when creating the make wrapper.
* Use ${HOST_SH} instead of unqualified sh when running shell scripts.
To generate a diff of this commit:
cvs rdiff -r1.152 -r1.153 src/build.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.