summaryrefslogtreecommitdiff
path: root/genbootstrap.sh
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-04-14 22:24:17 -0700
committerOri Bernstein <ori@eigenstate.org>2015-04-14 22:24:17 -0700
commitdebe132462d524de672e982f5982cc5882d2490b (patch)
tree0e44686281d7445155421abc96107b292d3bbcf3 /genbootstrap.sh
parente086260086fdbf25ebd2de0adaf66299003ad646 (diff)
downloadmc-debe132462d524de672e982f5982cc5882d2490b.tar.gz
Allow '-Rnone' to disable default lib search path.
Useful for a number of things, like building kernels. Also, bootstrapping. Use this in the bootstrap script to remove the last vestiges of a dependency on a working install.
Diffstat (limited to 'genbootstrap.sh')
-rwxr-xr-xgenbootstrap.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/genbootstrap.sh b/genbootstrap.sh
index bde4bc3..2b871c1 100755
--- a/genbootstrap.sh
+++ b/genbootstrap.sh
@@ -3,13 +3,16 @@
export MYR_MUSE=../muse/muse
export MYR_MC=../6/6m
export MYR_RT=../rt/_myrrt.o
-mbld clean
+
+./mbldwrap.sh
+cp mbld/mbld xmbld
+./xmbld clean
# The generated shell script should be a compatible bourne
# shell script.
bootscript=bootstrap+`uname -s`-`uname -m`
echo '#!/bin/sh' > bootstrap.sh
echo 'pwd=`pwd`' >> bootstrap.sh
-mbld -R. | \
+./xmbld -Rnone | \
sed "s:Entering directory '\\(.*\\)':\tcd \$pwd/\\1:g" | \
sed "s:Leaving directory.*:\tcd \$pwd:g" | \
sed "s:\\([a-zA-Z0-9_-]*\\)+.*:\`\$pwd/sysselect.sh \1\`:" | \
@@ -17,3 +20,4 @@ mbld -R. | \
sed 's/.*/echo &\n&/' | \
tee -a bootstrap.sh
chmod +x bootstrap.sh
+rm ./xmbld