summaryrefslogtreecommitdiff
path: root/genbootstrap.sh
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-06-23 22:41:44 -0700
committerOri Bernstein <ori@eigenstate.org>2015-06-23 22:41:44 -0700
commit04d647955b3d83e2fb3731d63887ae499809141e (patch)
tree0857db2d96d70131d9dea0b2532e51a2507e8a3e /genbootstrap.sh
parent737f88e311ea62fbe476d59a2e4ea5bbe7889650 (diff)
downloadmc-04d647955b3d83e2fb3731d63887ae499809141e.tar.gz
Fix up and regenerate bootstrap scripts.
Munge the path var instead of adding relative paths
Diffstat (limited to 'genbootstrap.sh')
-rwxr-xr-xgenbootstrap.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/genbootstrap.sh b/genbootstrap.sh
index 09c7aad..95fe5d9 100755
--- a/genbootstrap.sh
+++ b/genbootstrap.sh
@@ -1,16 +1,16 @@
#!/bin/sh
+export PATH="`pwd`6:`pwd`/muse:$PATH"
if test `uname` = Plan9; then
- export MYR_MUSE=../muse/6.out
- export MYR_MC=../6/6.out
- export MYR_RT=../rt/_myrrt.$O
+ export MYR_MUSE=6.out
+ export MYR_MC=6.out
+ export MYR_RT=`pwd`/rt/_myrrt.$O
else
- export MYR_MUSE=../muse/muse
- export MYR_MC=../6/6m
- export MYR_RT=../rt/_myrrt.o
+ export MYR_MUSE=muse
+ export MYR_MC=6m
+ export MYR_RT=`pwd`/rt/_myrrt.o
fi
-
./mbldwrap.sh
cp mbld/mbld xmbld
./xmbld clean
@@ -20,6 +20,7 @@ cp mbld/mbld xmbld
bootscript=mk/bootstrap/bootstrap+`uname -s`-`uname -m`.sh
echo '#!/bin/sh' > $bootscript
echo 'pwd=`pwd`' >> $bootscript
+echo 'export PATH=`pwd`/6:`pwd`/muse:$PATH' >> $bootscript
./xmbld -Rnone | \
sed "s:Entering directory '\\(.*\\)': cd \$pwd/\\1:g" | \
sed "s:Leaving directory.*: cd \$pwd:g" | \