summaryrefslogtreecommitdiff
path: root/mbldwrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mbldwrap.sh')
-rwxr-xr-xmbldwrap.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/mbldwrap.sh b/mbldwrap.sh
index 8a75691..83de5bf 100755
--- a/mbldwrap.sh
+++ b/mbldwrap.sh
@@ -1,12 +1,18 @@
#!/bin/sh
-export MYR_MUSE=../muse/muse
-export MYR_MC=../6/6m
-export MYR_RT=../rt/_myrrt.o
-
# this should be a bourne compatible shell script.
if test -f ./mbld/mbld; then
./mbld/mbld $@
+elif test `uname` = Plan9; then
+ echo "PLAN 9 BOOTSTRAP"
+ export MYR_MUSE=../muse/$O.out
+ export MYR_MC=../$O/$O.out
+ export MYR_RT=../rt/_myrrt.$O
+ ./bootstrap9.rc
else
+ echo "POSIX BOOTSTRAP"
+ export MYR_MUSE=../muse/muse
+ export MYR_MC=../6/6m
+ export MYR_RT=../rt/_myrrt.o
./bootstrap.sh
fi