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




                                         
                            


        

                    
                                



                          
       
#!/usr/bin/env zsh
# Simulate a specific example using subx.

if [ $# -eq 0 ]
then
  echo "run <binary> <args>"
  exit 1
fi

if [[ $1 == 'ex'* ]]
then
  CFLAGS=-g subx run examples/$*
  exit $?
fi

CFLAGS=-g subx run apps/$*
exit $?