about summary refs log tree commit diff stats
path: root/subx/gen
diff options
context:
space:
mode:
Diffstat (limited to 'subx/gen')
-rwxr-xr-xsubx/gen8
1 files changed, 7 insertions, 1 deletions
diff --git a/subx/gen b/subx/gen
index c9c5c85d..464506b3 100755
--- a/subx/gen
+++ b/subx/gen
@@ -1,5 +1,11 @@
 #!/usr/bin/env zsh
 # Build a specific example.
 
-CFLAGS=-g subx translate $1.subx `echo $1 |sed 's/\..*//'`
+if [[ $1 == 'ex'* ]]
+then
+  CFLAGS=-g subx translate examples/$1.subx examples/`echo $1 |sed 's/\..*//'`
+  exit $?
+fi
+
+CFLAGS=-g subx translate apps/$1.subx apps/`echo $1 |sed 's/\..*//'`
 exit $?