about summary refs log tree commit diff stats
path: root/subx/dgen
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-10-27 22:46:11 -0700
committerKartik Agaram <vc@akkartik.com>2018-10-27 22:46:23 -0700
commit5f21a5e788402345f97e8bc934259e960ba0f334 (patch)
tree686ce7ef76e90775903d33916017a6cdc9a80e91 /subx/dgen
parent5e5f569c1777e4062b2d4379ed4b17b9d0b18281 (diff)
downloadmu-5f21a5e788402345f97e8bc934259e960ba0f334.tar.gz
4726
Diffstat (limited to 'subx/dgen')
-rwxr-xr-xsubx/dgen11
1 files changed, 11 insertions, 0 deletions
diff --git a/subx/dgen b/subx/dgen
new file mode 100755
index 00000000..c4afbfb2
--- /dev/null
+++ b/subx/dgen
@@ -0,0 +1,11 @@
+#!/usr/bin/env zsh
+# Build commonly-used SubX programs in 'debug mode'.
+
+if [[ $1 == 'ex'* ]]
+then
+  CFLAGS=-g ./subx --map translate examples/$1.subx -o examples/`echo $1 |sed 's/\..*//'`
+  exit $?
+fi
+
+CFLAGS=-g ./subx --map translate *.subx apps/$1.subx  -o apps/`echo $1 |sed 's/\..*//'`
+exit $?