mu/translate_subx_emulated

23 lines
839 B
Bash
Executable File

#!/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 > a.survey
cat a.survey |./bootstrap_bin run apps/hex > a.elf
chmod +x a.elf