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 21:09:12 -0700
commit1819e3004f7c5bb5b88250d5c90d10159d7ddb51 (patch)
tree79477ef2a9adc0539790f2708d9c56d3965b6bfc /genbootstrap.sh
parent6581bc072d8930b49cc6772bdc16155c8ee350dc (diff)
downloadmc-1819e3004f7c5bb5b88250d5c90d10159d7ddb51.tar.gz
Fix up the bootstrap script to avoid an obj/ dir.
Diffstat (limited to 'genbootstrap.sh')
-rwxr-xr-xgenbootstrap.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/genbootstrap.sh b/genbootstrap.sh
index 7ce0fbf..c955999 100755
--- a/genbootstrap.sh
+++ b/genbootstrap.sh
@@ -15,14 +15,14 @@ fi
cp obj/mbld/mbld xmbld
./xmbld 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 | \
+# build without an obj/ dir, so we don't need to deal with
+# creating the heirarchy.
+./xmbld -o '' -j1 -Bnone mbld:mbld | \
sed "s:^\\(.*\\)/[^/]*\.\.\.: cd \$pwd/\\1:g" | \
sed "s:`pwd`:\$pwd:g" | \
grep '^ ' | \