diff options
Diffstat (limited to 'subx/gen')
-rwxr-xr-x | subx/gen | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/subx/gen b/subx/gen index a2f1de4a..0acbe3d8 100755 --- a/subx/gen +++ b/subx/gen @@ -16,11 +16,13 @@ fi # subx_bin is up to date. export CFLAGS=-g -if [[ $1 == 'ex'* ]] -then - ./subx translate examples/$1.subx -o examples/`echo $1 |sed 's/\..*//'` - exit $? -fi - -./subx translate *.subx apps/$1.subx -o apps/`echo $1 |sed 's/\..*//'` -exit $? +case $1 in + ex*) + ./subx translate examples/$1.subx -o examples/`echo $1 |sed 's/\..*//'` + exit $? + ;; + *) + ./subx translate *.subx apps/$1.subx -o apps/`echo $1 |sed 's/\..*//'` + exit $? + ;; +esac |