From 0420f7c1190607d8da3af6fae7e9f06a4c134001 Mon Sep 17 00:00:00 2001 From: Luke Bubar <43391582+lukerb52@users.noreply.github.com> Date: Mon, 20 Apr 2020 13:37:50 -0400 Subject: [PATCH] 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) --- .local/bin/compiler | 1 + 1 file changed, 1 insertion(+) 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" ;;