about summary refs log tree commit diff stats
path: root/ntranslate
blob: 4cc8e955d31eb9f452b9b5bfb713250f5d327d09 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
# Translate SubX using the self-hosted translator.
#
# 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/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