From 9da7f66feec3ec222760e5d34ff83e43ab41af39 Mon Sep 17 00:00:00 2001 From: Michael Schwarz Date: Thu, 4 Dec 2014 10:18:44 +0100 Subject: Added an example for gnerating OpenSCAD files. --- .gitignore | 3 +++ generate_sources.sh | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a6a369a..90abfc2 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,6 @@ *.pyc *.dxf *.stl + +# Generated files +/src/generated/ diff --git a/generate_sources.sh b/generate_sources.sh index 8ac6afa..4a05760 100755 --- a/generate_sources.sh +++ b/generate_sources.sh @@ -19,5 +19,7 @@ function generate_file() { } # Call generate_file for each file to be generated. -# E.g.: -# generate_file src/test.scad echo "cube();" +for i in {1..5}; do + size=$[ $i * 10 ] + generate_file "src/generated/cube_$size.scad" echo "cube($size);" +done -- cgit