chiark / gitweb /
quacks-ingredients: -make-copy-gcodes: use bash
[reprap-play.git] / quacks-ingredients-make-copy-gcodes
index 5bb12499677387f3126487b932834297679f17b4..7c85b29a796c8481de0da9dc07d47e1357efc5db 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # usage:
 #    ./quacks-ingredients-make-copy-gcodes Tests_L
@@ -23,7 +23,19 @@ gh () {
 
 for l in 1 2 3 4 5; do
        gh
-       cura -i quacks.ini -s $lhs$l,$f.auto.stl -o $g
+       qi=quacks-L$l.auto.ini
+
+       cp quacks.ini $qi
+
+       case $l in
+       2|4|5)
+               perl -i~ -pe '
+                       s/^(retraction_hop *= *.*)/retraction_hop = 0.6/m
+               ' $qi
+               ;;
+       esac
+
+       cura -i $qi -s $lhs$l,$f.auto.stl -o $g
        case $l in
        1|2|3|4)
                perl -i~ -pe 's/^/;/ if m/^M140 S0\b.*\n/' $g