diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-07-07 10:57:56 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-07-07 10:57:56 -0700 |
commit | ebe2bda37b74bc73550a051895b1831f8c2441ca (patch) | |
tree | 00e214e4ef8b2167e00f8d7066225ce03ed87117 /subx/run | |
parent | 37b3206e49572cf245ef7ee13d5bd24845f6a2e8 (diff) | |
download | mu-ebe2bda37b74bc73550a051895b1831f8c2441ca.tar.gz |
4321
Modify helpers to run either external examples in the subx/teensy/ directory, or my own examples in subx/ directory. Now I have to say `run test5` instead of `run 5`, and so on.
Diffstat (limited to 'subx/run')
-rwxr-xr-x | subx/run | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/subx/run b/subx/run index bc55c720..332d5786 100755 --- a/subx/run +++ b/subx/run @@ -7,4 +7,11 @@ then exit 1 fi -CFLAGS=-g subx run teensy/test$1 +if [[ $1 == 'test'* ]] +then + CFLAGS=-g subx run teensy/$1 + exit $? +fi + +CFLAGS=-g subx run $1 +exit $? |