src: mv ../buildEnvironmentVariables mkhdr

Also note that the file must be valid shell and mk input.
For #321.
This commit is contained in:
Russ Cox 2020-01-09 20:08:10 -05:00
parent 5aad8f3d6d
commit 77a0a5b519
3 changed files with 5 additions and 2 deletions

2
dist/buildmk vendored
View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# run this in the src directory # run this in the src directory
. ../src/mkenv
export SYSNAME OBJTYPE export SYSNAME OBJTYPE
. ../buildEnvironmentVariables
sh -x mkmk.sh sh -x mkmk.sh

View file

@ -1,3 +1,6 @@
# This file must be valid mk input for mkhdr
# and also valid shell input for ../dist/buildmk
SYSNAME=`uname` SYSNAME=`uname`
OBJTYPE=`(uname -m -p 2>/dev/null || uname -m) | sed ' OBJTYPE=`(uname -m -p 2>/dev/null || uname -m) | sed '
s;.*i[3-6]86.*;386;; s;.*i[3-6]86.*;386;;

View file

@ -1,4 +1,4 @@
<$PLAN9/buildEnvironmentVariables <$PLAN9/src/mkenv
BIN=$PLAN9/bin BIN=$PLAN9/bin
LIBDIR=$PLAN9/lib LIBDIR=$PLAN9/lib