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 lhs=quacks-ingredients-L
21 h=/media/sd/PREPARED/Q$l.G
24 for l in 1 2 3 4 5; do
26 cura -s $lhs$l,$f.auto.stl -o $g
29 perl -i~ -pe 's/^/;/ if m/^M140 S0\b.*\n/' $g
34 $l =~ s/^/;/ if m/^M400/;
37 END { print $l or die $!; }
41 umount /media/sd >/dev/null 2>&1 ||:
44 for l in 1 2 3 4 5; do
51 for l in 1 2 3 4 5; do