diff options
author | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-02-12 13:21:57 (GMT) |
---|---|---|
committer | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-02-12 13:21:57 (GMT) |
commit | 2f74b4abd01d6bd0ccaabfe77bf7ddfc8df4822a (patch) | |
tree | 7bc45a84ae2b9fa62e8c0a74baf72dab99d61d2c /scripts/batch-examples-stl.sh | |
parent | 572631746157766359a878c7b52d0c26ae731496 (diff) |
batch test stl export of all examples
git-svn-id: http://svn.clifford.at/openscad/trunk@437 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'scripts/batch-examples-stl.sh')
-rwxr-xr-x | scripts/batch-examples-stl.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/batch-examples-stl.sh b/scripts/batch-examples-stl.sh new file mode 100755 index 0000000..9c9f5e2 --- /dev/null +++ b/scripts/batch-examples-stl.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +cmd="openscad" +[ -x "./openscad" ] && cmd="./openscad" +[ -x "./OpenSCAD.app/Contents/MacOS/OpenSCAD" ] && cmd="./OpenSCAD.app/Contents/MacOS/OpenSCAD" + +mkdir -p output +for f in examples/*.scad; do + echo `basename $f .scad` + "$cmd" -s output/`basename $f .scad`.stl $f +done + |