blob: 9b8eb28cdb6755acb418b02ed91a2550ec0870e9 (
plain) (
tree)
|
|
#!/bin/sh
# Translate SubX by running the self-hosted translator natively on Linux.
#
# Possible knobs:
# Whether to run a phase natively or in emulated mode.
# This script is for running natively.
# Whether to stop after a phase.
# This script assumes inputs are already working so doesn't easily show
# which phase an error happens in.
# 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.)
# Again, that's for subsequent scripts.
set -e
./build
cat $* |apps/braces > a.braces
cat a.braces |apps/calls > a.calls
cat a.calls |apps/sigils > a.sigils
cat a.sigils |apps/tests > a.tests
cat a.tests |apps/dquotes > a.dquotes
cat a.dquotes |apps/assort > a.assort
cat a.assort |apps/pack > a.pack
cat a.pack |apps/survey > a.survey
cat a.survey |apps/hex > a.elf
chmod +x a.elf
|