2019-07-19 18:38:57 +00:00
|
|
|
#!/bin/sh
|
2019-09-07 17:20:44 +00:00
|
|
|
# Translate SubX by running the self-hosted translator in emulated mode on
|
|
|
|
# Linux or BSD or Mac.
|
2019-07-19 18:38:57 +00:00
|
|
|
#
|
|
|
|
# Possible knobs:
|
2019-09-07 17:14:35 +00:00
|
|
|
# Whether to run a phase natively or in emulated mode.
|
2019-07-19 18:38:57 +00:00
|
|
|
# Just always emulate for now since we debug on non-Linux.
|
|
|
|
# Whether to stop after a phase.
|
2019-09-07 17:14:35 +00:00
|
|
|
# Just always run all phases, but print out phases so it's clear where an
|
|
|
|
# error happens.
|
|
|
|
# Whether to trace a phase. Whether to always trace or rerun with tracing
|
|
|
|
# enabled after an error.
|
|
|
|
# Leave tracing to other scripts. We save intermediate files so it's easy
|
|
|
|
# to rerun a single phase afterwards.
|
|
|
|
# Whether to run a phase with debug information. (Need to juggle multiple
|
|
|
|
# sets of debug files.)
|
2019-07-19 18:38:57 +00:00
|
|
|
# Again, that's for subsequent scripts.
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2019-08-26 00:37:10 +00:00
|
|
|
./build
|
2019-07-19 18:38:57 +00:00
|
|
|
|
2020-01-02 09:41:55 +00:00
|
|
|
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/dquotes > a.dquotes
|
|
|
|
cat a.dquotes |./bootstrap_bin run apps/assort > a.assort
|
|
|
|
cat a.assort |./bootstrap_bin run apps/pack > a.pack
|
|
|
|
cat a.pack |./bootstrap_bin run apps/survey > a.survey
|
|
|
|
cat a.survey |./bootstrap_bin run apps/hex > a.elf
|
2019-09-05 00:36:12 +00:00
|
|
|
|
|
|
|
chmod +x a.elf
|