diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-07-06 22:49:55 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-07-06 22:49:55 -0700 |
commit | f0b99910f3558a426bcc80e2aff54c5d0428e5bb (patch) | |
tree | 351abe9676ea14106127e65ce78d16633e0ac92b /subx/g2 | |
parent | 5f1de34a679ab0b9c59067f7924f1c953917b53e (diff) | |
download | mu-f0b99910f3558a426bcc80e2aff54c5d0428e5bb.tar.gz |
4313 - some helpers for managing test binaries
I'm getting sick of hitting the <Tab> key.
Diffstat (limited to 'subx/g2')
-rwxr-xr-x | subx/g2 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/subx/g2 b/subx/g2 new file mode 100755 index 00000000..03b356f3 --- /dev/null +++ b/subx/g2 @@ -0,0 +1,14 @@ +#!/usr/bin/env zsh +# Run git commands on a specific example's generated binary. + +if [ $# -eq 0 ] +then + echo "g <git command> <args> <suffix>" + exit 1 +fi + +arg=( $* ) +suffix=$arg[${#arg[@]}] +unset "arg[${#arg[@]}]" + +git ${arg[@]} ./teensy/test$suffix |