mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
mk: provide a mechanism to default to rc
For cross-compiling plan9 from Unix, provide a way to force `mk` to use `rc` instead of `sh` without setting `MKSHELL` in individual `mkfile`s. If the environment variable `FORCERCFORMK` is set, `mk` will default to using `rc`, not `sh`. Signed-off-by: Dan Cross <cross@gajendra.net>
This commit is contained in:
parent
d3ee9f70e4
commit
e683bdfa76
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,8 @@ setshell(Word *w)
|
||||||
void
|
void
|
||||||
initshell(void)
|
initshell(void)
|
||||||
{
|
{
|
||||||
|
if(getenv("FORCERCFORMK") != nil)
|
||||||
|
shelldefault = &rcshell;
|
||||||
shellcmd = stow(shelldefault->name);
|
shellcmd = stow(shelldefault->name);
|
||||||
shellt = shelldefault;
|
shellt = shelldefault;
|
||||||
setvar("MKSHELL", shellcmd);
|
setvar("MKSHELL", shellcmd);
|
||||||
|
|
Loading…
Reference in a new issue