diff options
-rwxr-xr-x | dist/buildmk | 2 | ||||
-rw-r--r-- | src/mkenv (renamed from buildEnvironmentVariables) | 3 | ||||
-rw-r--r-- | src/mkhdr | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/dist/buildmk b/dist/buildmk index 6be4ba50..c559570c 100755 --- a/dist/buildmk +++ b/dist/buildmk @@ -1,6 +1,6 @@ #!/bin/sh # run this in the src directory +. ../src/mkenv export SYSNAME OBJTYPE -. ../buildEnvironmentVariables sh -x mkmk.sh diff --git a/buildEnvironmentVariables b/src/mkenv index f6de1e35..6ff746e0 100644 --- a/buildEnvironmentVariables +++ b/src/mkenv @@ -1,3 +1,6 @@ +# This file must be valid mk input for mkhdr +# and also valid shell input for ../dist/buildmk + SYSNAME=`uname` OBJTYPE=`(uname -m -p 2>/dev/null || uname -m) | sed ' s;.*i[3-6]86.*;386;; @@ -1,4 +1,4 @@ -<$PLAN9/buildEnvironmentVariables +<$PLAN9/src/mkenv BIN=$PLAN9/bin LIBDIR=$PLAN9/lib |