about summary refs log blame commit diff stats
path: root/subx/gen
blob: fb2e75325ce07e5659e509fe46a18ca666c88030 (plain) (tree)
1
2
3
4
5
6
7
8
9


                           

                    
                                                                                 


         
                                                                               
       
#!/usr/bin/env zsh
# Build a specific example.

if [[ $1 == 'ex'* ]]
then
  CFLAGS=-g subx translate examples/$1.subx -o examples/`echo $1 |sed 's/\..*//'`
  exit $?
fi

CFLAGS=-g subx translate *.subx apps/$1.subx  -o apps/`echo $1 |sed 's/\..*//'`
exit $?