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
32 *) echo >&2 "??? $l"; exit 1 ;;
36 $l =~ s/^/;/ if m/^M400/;
39 END { print $l or die $!; }
43 umount /media/sd >/dev/null 2>&1 ||:
46 for l in 1 2 3 4 5; do
53 for l in 1 2 3 4 5; do