about summary refs log tree commit diff stats
path: root/subx/dgen
diff options
context:
space:
mode:
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 $?