diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rwxr-xr-x | generate_sources.sh | 6 |
2 files changed, 7 insertions, 2 deletions
@@ -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 |