mirror of
git://projects.qi-hardware.com/f32xbase.git
synced 2024-11-16 22:55:56 +02:00
22 lines
516 B
Bash
Executable File
22 lines
516 B
Bash
Executable File
#!/bin/sh -e
|
|
DIR=/home/moko/svn.openmoko.org/developers/werner/cncmap
|
|
RECT=$DIR/rect/rect
|
|
ALIGN=$DIR/align/align
|
|
ZMAP=$DIR/zmap/zmap
|
|
GP2RML=$DIR/gp2rml/gp2rml
|
|
|
|
GEN=${1:-./pcb.pl}
|
|
|
|
rdata="19.6 13.0 -56.2 19.6 53.1 -56.1 110.7 14.1 -56.2"
|
|
# lower Z by 0.5 mm relative to highest point
|
|
Z=-56.6
|
|
|
|
rect=`$RECT $rdata | awk '{$3 = ""; print}'`
|
|
|
|
$GEN |
|
|
awk '{ if ($3 != "") $3 += '$Z'; print $0; }' |
|
|
$ALIGN 0 1 $rect |
|
|
# angle, reference (lower left corner), rect
|
|
$GP2RML 3 0.1 0.1
|
|
# clearance, xy speed, z speed
|