From 77e5d9ed7f2a4a6a1e1b54ba0a7d14bfbed59421 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 28 Mar 2020 14:49:06 +0000 Subject: [PATCH] quacks-ingredients: -make-copy-gcodes: files Q-P-order.G Signed-off-by: Ian Jackson --- quacks-ingredients-make-copy-gcodes | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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 -- 2.30.2