about summary refs log tree commit diff stats
path: root/subx/run
blob: b0eac8df4b8104d5c338950e7c0140c72ecd1c9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env zsh
# Simulate a specific example using subx.

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

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

CFLAGS=-g subx run $1
exit $?