diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-03-09 14:13:56 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-03-09 14:13:56 -0800 |
commit | 257ebf7f508d0a0352abf732019f00a1b3962741 (patch) | |
tree | 6c9e45adfe1a4b76b5d3bb65cb1910cfb1a7be89 /subx/dgen | |
parent | 7a22a21995001cbdf72c5e3b92f52c9abcee3202 (diff) | |
download | mu-257ebf7f508d0a0352abf732019f00a1b3962741.tar.gz |
4997
Diffstat (limited to 'subx/dgen')
-rwxr-xr-x | subx/dgen | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/subx/dgen b/subx/dgen index 34f49deb..4aeec375 100755 --- a/subx/dgen +++ b/subx/dgen @@ -16,11 +16,13 @@ fi # subx_bin is up to date. export CFLAGS=-g -if [[ $1 == 'ex'* ]] -then - ./subx --map translate examples/$1.subx -o examples/`echo $1 |sed 's/\..*//'` - exit $? -fi - -./subx --map translate *.subx apps/$1.subx -o apps/`echo $1 |sed 's/\..*//'` -exit $? +case $1 in + ex*) + ./subx --map translate examples/$1.subx -o examples/`echo $1 |sed 's/\..*//'` + exit $? + ;; + *) + ./subx --map translate *.subx apps/$1.subx -o apps/`echo $1 |sed 's/\..*//'` + exit $? + ;; +esac |