about summary refs log tree commit diff stats
path: root/subx/gen
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-09-30 22:49:24 -0700
committerKartik Agaram <vc@akkartik.com>2018-09-30 23:12:54 -0700
commit1dcd9350ce975fb05ed99a5ffc864b0d65c8bab3 (patch)
tree14ae2237d5b164ef7db4604567cd29b3b32cfa73 /subx/gen
parent2e693f723de721fff35f74ef1194132d48222615 (diff)
downloadmu-1dcd9350ce975fb05ed99a5ffc864b0d65c8bab3.tar.gz
4624
Start requiring a '-o' flag to designate the output binary when translating.

Things currently get funky if you pass in multiple inputs, but that's ok.
This is the first step to supporting multiple input files for a single
output binary.
Diffstat (limited to 'subx/gen')
-rwxr-xr-xsubx/gen4
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/gen b/subx/gen
index 464506b3..a73d763b 100755
--- a/subx/gen
+++ b/subx/gen
@@ -3,9 +3,9 @@
 
 if [[ $1 == 'ex'* ]]
 then
-  CFLAGS=-g subx translate examples/$1.subx examples/`echo $1 |sed 's/\..*//'`
+  CFLAGS=-g subx translate examples/$1.subx -o examples/`echo $1 |sed 's/\..*//'`
   exit $?
 fi
 
-CFLAGS=-g subx translate apps/$1.subx apps/`echo $1 |sed 's/\..*//'`
+CFLAGS=-g subx translate apps/$1.subx -o apps/`echo $1 |sed 's/\..*//'`
 exit $?