summaryrefslogtreecommitdiff
path: root/scripts/batch-2d.sh
diff options
context:
space:
mode:
authorkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-31 22:57:47 (GMT)
committerkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-31 22:57:47 (GMT)
commita11fbea581b5e31df2ec550503c8b8813198d4e1 (patch)
tree194ed329b346494dae9739d5482e04525bd064dc /scripts/batch-2d.sh
parentf54fd3f3ff78626ac619c6ec8de50de9a8cb1ad7 (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
Diffstat (limited to 'scripts/batch-2d.sh')
-rwxr-xr-xscripts/batch-2d.sh10
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
contact: Jan Huwald // Impressum