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

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

if [[ $1 == 'test'* ]]
then
  ./teensy/$1
  exit $?
fi

./$1
exit $?