From 6e1eeeebfb453fa7c871869c19375ce60fbd7413 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 27 Jul 2019 16:01:55 -0700 Subject: 5485 - promote SubX to top-level --- ntranslate | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 ntranslate (limited to 'ntranslate') diff --git a/ntranslate b/ntranslate new file mode 100755 index 00000000..24d87056 --- /dev/null +++ b/ntranslate @@ -0,0 +1,33 @@ +#!/bin/sh +# Translate SubX using the self-hosted translator. +# +# Possible knobs: +# Whether to run a phase directly or emulated. +# This script is for running natively. +# Whether to stop after a phase. +# 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.) +# Again, that's for subsequent scripts. + +set -e +set -v + +./build + +echo `cat $* |grep -v '^\s*#\|^\s*$' |wc -l` lines + +cat $* |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 + +xxd a.elf > a.xxd -- cgit 1.4.1-2-gfad0