Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 16 lines (12 sloc) 328 Bytes
#!/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 testdata/dxf/*.dxf; do
echo `basename $f`
cat > tmp.scad << EOF
import_dxf("$f");
EOF
"$cmd" -x output/`basename $f` tmp.scad
done