mu/ntranslate

39 lines
1.1 KiB
Plaintext
Raw Normal View History

#!/bin/sh
2019-09-07 17:20:44 +00:00
# Translate SubX by running the self-hosted translator natively on Linux.
#
# Possible knobs:
2019-09-07 17:14:35 +00:00
# Whether to run a phase natively or in emulated mode.
# This script is for running natively.
# Whether to stop after a phase.
2019-09-07 17:14:35 +00:00
# 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/calls > a.calls
cat a.calls |apps/sigils > a.sigils
2019-08-26 05:15:26 +00:00
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
2019-09-05 00:36:12 +00:00
chmod +x a.elf