diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/batch-2d.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/batch-2d.sh b/scripts/batch-2d.sh new file mode 100755 index 0000000..f234e16 --- /dev/null +++ b/scripts/batch-2d.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +mkdir -p output +for f in testdata/*.dxf; do + echo `basename $f` + cat > tmp.scad << EOF + import_dxf("$f"); +EOF + ./OpenSCAD.app/Contents/MacOS/OpenSCAD -x output/`basename $f` tmp.scad +done
\ No newline at end of file |