diff options
| author | Luke Bubar <43391582+lukerb52@users.noreply.github.com> | 2020-04-20 13:37:50 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-20 13:37:50 -0400 |
| commit | 0420f7c1190607d8da3af6fae7e9f06a4c134001 (patch) | |
| tree | a14e2702bd5430ffeef8ac682e52e95c5afc2b68 /.local/bin/compiler | |
| parent | 6bcdd2bfca57589f5107463745002d32495e9107 (diff) | |
| download | eibhear-0420f7c1190607d8da3af6fae7e9f06a4c134001.tar.gz eibhear-0420f7c1190607d8da3af6fae7e9f06a4c134001.tar.zst eibhear-0420f7c1190607d8da3af6fae7e9f06a4c134001.zip | |
Added OpenSCAD run conditions (#582)
Default output to STL seems appropriate. STL files can be viewed with a minimalist program like fstl (in the AUR)
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 474300f..fd812b5 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -33,6 +33,7 @@ case "$file" in *\.c) cc "$file" -o "$base" && "$base" ;; *\.py) python "$file" ;; *\.m) octave "$file" ;; + *\.scad) openscad -o "$base".stl "$file" ;; *\.go) go run "$file" ;; *\.sent) setsid sent "$file" 2>/dev/null & ;; *) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;; |
