summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-11-26 21:44:22 -0800
committerOri Bernstein <ori@eigenstate.org>2018-11-26 21:44:22 -0800
commit764129151551e13de123d391ad463c0dca9b31ee (patch)
tree59d3037ca1aa9c1164a9370a1f6ed9420a6183c1
parent6605f374c8ae0500c1881051927cd4e72f11a553 (diff)
downloadmc-764129151551e13de123d391ad463c0dca9b31ee.tar.gz
Create our required directories.
Fixes some bootstraps.
-rwxr-xr-xgenbootstrap.sh22
-rwxr-xr-xmk/bootstrap/bootstrap+Plan9-amd64.sh18
2 files changed, 40 insertions, 0 deletions
diff --git a/genbootstrap.sh b/genbootstrap.sh
index 7511fae..caa4e2a 100755
--- a/genbootstrap.sh
+++ b/genbootstrap.sh
@@ -39,6 +39,28 @@ echo '#!/bin/sh' > $bootscript
echo '# This script is generated by genbootstrap.sh' >> $bootscript
echo '# to regenerate, run "make bootstrap"' >> $bootscript
echo '#######################################'
+
+# we output into obj; things can fail if we don't create those dirs
+
+echo 'mkdir -p obj/lib/bio' >> $bootscript
+echo 'mkdir -p obj/lib/bld.sub' >> $bootscript
+echo 'mkdir -p obj/lib/crypto' >> $bootscript
+echo 'mkdir -p obj/lib/date' >> $bootscript
+echo 'mkdir -p obj/lib/escfmt' >> $bootscript
+echo 'mkdir -p obj/lib/fileutil' >> $bootscript
+echo 'mkdir -p obj/lib/flate' >> $bootscript
+echo 'mkdir -p obj/lib/http' >> $bootscript
+echo 'mkdir -p obj/lib/inifile' >> $bootscript
+echo 'mkdir -p obj/lib/iter' >> $bootscript
+echo 'mkdir -p obj/lib/json' >> $bootscript
+echo 'mkdir -p obj/lib/math' >> $bootscript
+echo 'mkdir -p obj/lib/regex' >> $bootscript
+echo 'mkdir -p obj/lib/std' >> $bootscript
+echo 'mkdir -p obj/lib/sys' >> $bootscript
+echo 'mkdir -p obj/lib/testr' >> $bootscript
+echo 'mkdir -p obj/lib/thread' >> $bootscript
+echo 'mkdir -p obj/mbld' >> $bootscript
+
echo 'pwd=`pwd`' >> $bootscript
echo 'set -x' >> $bootscript
# mbld needs to be run without an output dir so we dont
diff --git a/mk/bootstrap/bootstrap+Plan9-amd64.sh b/mk/bootstrap/bootstrap+Plan9-amd64.sh
index 25a0757..7b850d7 100755
--- a/mk/bootstrap/bootstrap+Plan9-amd64.sh
+++ b/mk/bootstrap/bootstrap+Plan9-amd64.sh
@@ -1,6 +1,24 @@
#!/bin/sh
# This script is generated by genbootstrap.sh
# to regenerate, run "make bootstrap"
+mkdir -p obj/lib/bio
+mkdir -p obj/lib/bld.sub
+mkdir -p obj/lib/crypto
+mkdir -p obj/lib/date
+mkdir -p obj/lib/escfmt
+mkdir -p obj/lib/fileutil
+mkdir -p obj/lib/flate
+mkdir -p obj/lib/http
+mkdir -p obj/lib/inifile
+mkdir -p obj/lib/iter
+mkdir -p obj/lib/json
+mkdir -p obj/lib/math
+mkdir -p obj/lib/regex
+mkdir -p obj/lib/std
+mkdir -p obj/lib/sys
+mkdir -p obj/lib/testr
+mkdir -p obj/lib/thread
+mkdir -p obj/mbld
pwd=`pwd`
set -x
$pwd/6/6.out -O obj -I obj/lib/sys -I obj/lib/std -I obj/lib/bio -I obj/lib/regex -I obj/lib/thread mbld/config+plan9-x64.myr