chiark / gitweb /
scaffold-clamp: wip straphook
[reprap-play.git] / quacks-ingredients-make-copy-gcodes
index d5c702e7890cfc4eb98f31fc9dfd675da1d6da13..fd34367e8f117f310690253f54dea69164113210 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # usage:
 #    ./quacks-ingredients-make-copy-gcodes Tests_L
@@ -28,7 +28,7 @@ for l in 1 2 3 4 5; do
        cp quacks.ini $qi
 
        case $l in
-       4|5)
+       2|4|5)
                perl -i~ -pe '
                        s/^(retraction_hop *= *.*)/retraction_hop = 0.6/m
                ' $qi
@@ -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