summaryrefslogtreecommitdiff
path: root/scripts/batch-examples-stl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/batch-examples-stl.sh')
-rwxr-xr-xscripts/batch-examples-stl.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/batch-examples-stl.sh b/scripts/batch-examples-stl.sh
index 9c9f5e2..c8c3659 100755
--- a/scripts/batch-examples-stl.sh
+++ b/scripts/batch-examples-stl.sh
@@ -1,12 +1,9 @@
#!/bin/sh
-cmd="openscad"
-[ -x "./openscad" ] && cmd="./openscad"
-[ -x "./OpenSCAD.app/Contents/MacOS/OpenSCAD" ] && cmd="./OpenSCAD.app/Contents/MacOS/OpenSCAD"
+SCRIPTDIR=`dirname $0`
mkdir -p output
for f in examples/*.scad; do
echo `basename $f .scad`
- "$cmd" -s output/`basename $f .scad`.stl $f
+ $SCRIPTDIR/create-stl.sh $f output/`basename $f .scad`.stl
done
-
contact: Jan Huwald // Impressum