summaryrefslogtreecommitdiff
path: root/genbootstrap.sh
diff options
context:
space:
mode:
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 '^ ' | \