summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rwxr-xr-xgenerate_sources.sh6
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