summaryrefslogtreecommitdiff
path: root/genbootstrap.sh
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-25 20:57:13 -0700
committerOri Bernstein <ori@eigenstate.org>2017-07-25 22:23:11 -0700
commit710a12397e717608d3ae0886fd41aaa7dac8fb46 (patch)
tree6355b824c7166020d88bc7bab7b9a409751406b6 /genbootstrap.sh
parentc04386762c224c031f679e94df910d699b5931a6 (diff)
downloadmc-710a12397e717608d3ae0886fd41aaa7dac8fb46.tar.gz
Update all bootstrapsmbld-rebase
- FreeBSD - Linux - Plan 9 - OSX - OpenBSD - NetBSD
Diffstat (limited to 'genbootstrap.sh')
-rwxr-xr-xgenbootstrap.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/genbootstrap.sh b/genbootstrap.sh
index 7ce0fbf..92cbc81 100755
--- a/genbootstrap.sh
+++ b/genbootstrap.sh
@@ -11,18 +11,19 @@ else
export MYR_RT=`pwd`/rt/_myrrt.o
fi
+# build without an obj/ dir, so we don't need to deal with
+# creating the heirarchy for the compiler. mbld usually
+# deals with that, but the bootstrap doesn't have it.
./mbldwrap.sh
cp obj/mbld/mbld xmbld
-./xmbld clean
+./xmbld -o '' clean
-# The generated shell script should be a compatible bourne
-# shell script.
bootscript=mk/bootstrap/bootstrap+`uname -s`-`uname -m`.sh
echo '#!/bin/sh' > $bootscript
echo '# This script is generated by genbootstrap.sh' >> $bootscript
echo '# to regenerate, run "make bootstrap"' >> $bootscript
echo 'pwd=`pwd`' >> $bootscript
-./xmbld -j1 -Bnone mbld:mbld | \
+./xmbld -o '' -j1 -Bnone mbld:mbld | \
sed "s:^\\(.*\\)/[^/]*\.\.\.: cd \$pwd/\\1:g" | \
sed "s:`pwd`:\$pwd:g" | \
grep '^ ' | \