diff options
| author | Luke Bubar <43391582+lukerb52@users.noreply.github.com> | 2020-04-15 19:58:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-15 19:58:20 -0400 |
| commit | bdbf0d838268575f2d310c769636b165c81f196b (patch) | |
| tree | d66ffca7fb93920dd71ab2134649e986cc2bbb3c /.local/bin/compiler | |
| parent | 0242d8428d258a886bed6305dc6e37e61ab86046 (diff) | |
| download | eibhear-bdbf0d838268575f2d310c769636b165c81f196b.tar.gz eibhear-bdbf0d838268575f2d310c769636b165c81f196b.tar.zst eibhear-bdbf0d838268575f2d310c769636b165c81f196b.zip | |
Added GNU Octave run conditions (#575)
Diffstat (limited to '.local/bin/compiler')
| -rwxr-xr-x | .local/bin/compiler | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.local/bin/compiler b/.local/bin/compiler index 2fefdf5..474300f 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -32,6 +32,7 @@ case "$file" in *config.h) sudo make install ;; *\.c) cc "$file" -o "$base" && "$base" ;; *\.py) python "$file" ;; + *\.m) octave "$file" ;; *\.go) go run "$file" ;; *\.sent) setsid sent "$file" 2>/dev/null & ;; *) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;; |
