4 # ./quacks-ingredients-make-copy-gcodes Tests_L
6 # quacks-ingredients-L$l,Tests_L.auto.stl
8 # quacks-ingredients-L$l,Tests_L.auto.gcode
9 # and then edits them and copies them to the SD card as
17 umount /media/sd >/dev/null 2>&1 ||:
20 lhs=quacks-ingredients-L
24 h=/media/sd/PREPARED/Q$l.G
27 for l in 1 2 3 4 5; do
29 cura -s $lhs$l,$f.auto.stl -o $g
32 perl -i~ -pe 's/^/;/ if m/^M140 S0\b.*\n/' $g
35 *) echo >&2 "??? $l"; exit 1 ;;
39 $l =~ s/^/;/ if m/^M400/;
42 END { print $l or die $!; }
51 for l in 1 2 3 4 5; do