diff options
author | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-05-27 23:16:23 (GMT) |
---|---|---|
committer | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-05-27 23:16:23 (GMT) |
commit | 0d4e236492e3d92e3b3368572d401b338580fe1b (patch) | |
tree | bae06c5230a90b9f970331f2f87580ccc2253007 /scripts/create-stl.sh | |
parent | 5da047f482b7ede20449262b0f73adbcdbc0e40a (diff) |
Added create-stl.sh
git-svn-id: http://svn.clifford.at/openscad/trunk@550 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'scripts/create-stl.sh')
-rwxr-xr-x | scripts/create-stl.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/create-stl.sh b/scripts/create-stl.sh new file mode 100755 index 0000000..cd296bf --- /dev/null +++ b/scripts/create-stl.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ $# != 2 ]; then + echo "Usage: $0 scad-file stl-file" + exit 1 +fi +scadfile=$1 +stlfile=$2 + +cmd="openscad" +[ -x "./openscad" ] && cmd="./openscad" +[ -x "./OpenSCAD.app/Contents/MacOS/OpenSCAD" ] && cmd="./OpenSCAD.app/Contents/MacOS/OpenSCAD" + +"$cmd" -s $stlfile $scadfile |