X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=quacks-ingredients-make-copy-gcodes;h=fd34367e8f117f310690253f54dea69164113210;hb=6a319b7ceeca0d02fbeac92c0737e976919d87a1;hp=7c85b29a796c8481de0da9dc07d47e1357efc5db;hpb=81b225b4eac7520d9ca8fb2c3d54849c5be2cccb;p=reprap-play.git diff --git a/quacks-ingredients-make-copy-gcodes b/quacks-ingredients-make-copy-gcodes index 7c85b29..fd34367 100755 --- a/quacks-ingredients-make-copy-gcodes +++ b/quacks-ingredients-make-copy-gcodes @@ -101,19 +101,31 @@ for l in 4; do cat $g >&3 done +copies="3:5 2:234 1:1" +copyls="" +for copy in $copies; do + l=-P-${copy%:*} + ci=$lhs${copy#*:}.auto.gcode + copyls+=" $l" + gh + rm -f $g + ln -vs $ci $g +done + umount /media/sd >/dev/null 2>&1 ||: mount /media/sd -for l in 1 2 3 4 5 234; do +for l in 1 2 3 4 5 234 $copyls; do gh cp $g $h done + sleep 0.5 umount /media/sd mount /media/sd -for l in 1 2 3 4 5 234; do +for l in 1 2 3 4 5 234 $copyls; do gh cmp $g $h ls -l $h