diff options
author | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-31 22:57:47 (GMT) |
---|---|---|
committer | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-31 22:57:47 (GMT) |
commit | a11fbea581b5e31df2ec550503c8b8813198d4e1 (patch) | |
tree | 194ed329b346494dae9739d5482e04525bd064dc | |
parent | f54fd3f3ff78626ac619c6ec8de50de9a8cb1ad7 (diff) |
Does a DXF export by importing each dxf file from testdata
git-svn-id: http://svn.clifford.at/openscad/trunk@391 b57f626f-c46c-0410-a088-ec61d464b74c
-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 |