Only build step files and prerequisites for the spiral and only when STEP is true

This commit is contained in:
Matt McWilliams 2021-10-15 12:13:08 -04:00
parent ba2b701a7a
commit c1ae9a9d7d
1 changed files with 12 additions and 8 deletions

View File

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
V="v3" V="v3"
# Commit changes before running this build script
echo "Rendering GNAL ${V}" echo "Rendering GNAL ${V}"
bash ./scripts/deps.sh bash ./scripts/deps.sh
@ -95,15 +97,17 @@ render_part () {
echo "$line" echo "$line"
fi fi
start=`date +%s` if [ ${STEP} = true ] && [[ "${FILE}" == "spiral" ]]; then
if [[ "${SIZE}" == "100ft" ]]; then start=`date +%s`
openscad --csglimit=20000000 -o "$csg" -D "PART=\"${FILE}\"" -D "FN=800" "${scad}" if [[ "${SIZE}" == "100ft" ]]; then
else openscad --csglimit=20000000 -o "$csg" -D "PART=\"${FILE}\"" -D "FN=800" "${scad}"
openscad --csglimit=10000000 -o "$csg" -D "PART=\"${FILE}\"" -D "FN=600" "${scad}" else
openscad --csglimit=10000000 -o "$csg" -D "PART=\"${FILE}\"" -D "FN=600" "${scad}"
fi
end=`date +%s`
runtime=$((end-start))
echo "Compiling CSG took ${runtime}sec"
fi fi
end=`date +%s`
runtime=$((end-start))
echo "Rendering image of ${stl}..." echo "Rendering image of ${stl}..."