1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2024-12-22 23:43:00 +02:00

mkmk-simple: new option CLEARANCE (default: 2mm)

This commit is contained in:
Werner Almesberger 2011-09-01 12:00:58 -03:00
parent 00166f3751
commit 5651a40230

View File

@ -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 <<EOF >Makefile.mkmk