From 5651a40230665d613cdcc3f028b1fe4c32681d6c Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 1 Sep 2011 12:00:58 -0300 Subject: [PATCH] mkmk-simple: new option CLEARANCE (default: 2mm) --- cameo/templates/mkmk-simple | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cameo/templates/mkmk-simple b/cameo/templates/mkmk-simple index 2d73b13..682bc86 100755 --- a/cameo/templates/mkmk-simple +++ b/cameo/templates/mkmk-simple @@ -16,6 +16,7 @@ PATH=$PATH:/home/qi/cae-tools/gp2rml # BOARD_Z board tickness, default: 0.8 mm # ANY set to "any" to use all remaining paths for milling, # irrespective of tool size. Default: unset / empty string. +# CLEARANCE tool clearance above PCB surface, default: 2mm # while [ "$1" ]; do @@ -34,6 +35,7 @@ fi : ${MILL_IN:=35mil} : ${MILL_OUT:=35mil} : ${BOARD_Z:=0.8mm} +: ${CLEARANCE:=2mm} rot= if [ "$ROT" ]; then @@ -83,8 +85,8 @@ EOF yi=`expr $yi + 1` done -gp2rml 2 0.5 0.5 mill.gp >mill.rml -gp2rml 2 0.1 0.5 drill.gp >drill.rml +gp2rml $CLEARANCE 0.5 0.5 mill.gp >mill.rml +gp2rml $CLEARANCE 0.1 0.5 drill.gp >drill.rml cat <Makefile.mkmk