about summary refs log tree commit diff stats
path: root/clean
blob: 7a0eda83b831b60b254b07b46b96b866fd3ad7c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e

set -v
rm -rf bootstrap.cc bootstrap_bin* *_list
rm -rf .until
test $# -gt 0 && exit 0  # convenience: 'clean top-level' to leave subsidiary tools alone
rm -rf tools/enumerate tools/tangle tools/*_list tools/*.dSYM
rm -rf tools/browse_trace_bin tools/treeshake tools/linkify
rm -rf tools/termbox/*.o tools/termbox/libtermbox.a
rm -rf tmp_linux mu_linux.iso outfs initrd.fat mu_soso.iso
( cd tools/iso/kernel.soso  &&  make clean; )
.fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #33
#!/bin/sh
# Translate given SubX files by running the self-hosted translator in emulated
# mode on Linux or BSD or Mac.
#
# We _could_ generate traces here, but that's often extremely slow.

set -e

./build

cat $*          |./bootstrap_bin run apps/braces      > a.braces
cat a.braces    |./bootstrap_bin run apps/calls       > a.calls
cat a.calls     |./bootstrap_bin run apps/sigils      > a.sigils
cat a.sigils    |./bootstrap_bin run apps/tests       > a.tests
cat a.tests     |./bootstrap_bin run apps/assort      > a.assort
cat a.assort    |./bootstrap_bin run apps/dquotes     > a.dquotes
cat a.dquotes   |./bootstrap_bin run apps/assort      > a.assort2
cat a.assort2   |./bootstrap_bin run apps/pack        > a.pack
cat a.pack      |./bootstrap_bin run apps/survey_elf  > a.survey
cat a.survey    |./bootstrap_bin run apps/hex         > a.elf

chmod +x a.elf