summaryrefslogtreecommitdiff
path: root/mbldwrap.sh
blob: 620fb70821a5305df67c3602fbcd8ec7dd6b5665 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

# this should be a bourne compatible shell script.
if test `uname` = Plan9; then
	export MYR_MUSE=../muse/$O.out
	export MYR_MC=../$O/$O.out
	export MYR_RT=../rt/_myrrt.$O
	BOOT="./mk/bootstrap/bootstrap+`uname -s`-`uname -m`.sh"
else
	export MYR_MUSE=../muse/muse
	export MYR_MC=../6/6m
	export MYR_RT=../rt/_myrrt.o
	BOOT="./mk/bootstrap/bootstrap+`uname -s`-`uname -m`.sh"
fi

if [ -z "$@" ]; then
    mbld || ./mbld/mbld || $BOOT
else
    mbld $@ || ./mbld/mbld $@ || \
        (echo "Unable to run mbld $@; have you build successfully"; false)
fi