-#!/bin/sh
+#!/bin/bash
#
# usage:
# ./quacks-ingredients-make-copy-gcodes Tests_L
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