mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-22 23:26:27 +02:00
cameo/templates/mkmk-simple: accept no only Gerber but also $NAME.gp as input
This commit is contained in:
parent
dc79b03b1d
commit
1f04d6490a
@ -42,7 +42,8 @@ if [ "$ROT" ]; then
|
|||||||
rot="rotate $ROT"
|
rot="rotate $ROT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
edges=
|
edges=$NAME.gp
|
||||||
|
[ -r "$edges" ] || edges=
|
||||||
for n in PCB_Edges.gbr Edge_Cuts.gbr Edge_Cuts.pho; do
|
for n in PCB_Edges.gbr Edge_Cuts.gbr Edge_Cuts.pho; do
|
||||||
if [ -r "../$NAME-$n" ]; then
|
if [ -r "../$NAME-$n" ]; then
|
||||||
edges=../$NAME-$n
|
edges=../$NAME-$n
|
||||||
@ -63,7 +64,8 @@ while [ $yi -lt $YN ]; do
|
|||||||
cameo <<EOF || exit
|
cameo <<EOF || exit
|
||||||
mm
|
mm
|
||||||
|
|
||||||
gerber 35mil $edges
|
`if [ "$edges" != "${edges%.gp}" ]; then echo gnuplot 35mil $edges;
|
||||||
|
else echo gerber 35mil $edges; fi`
|
||||||
$rot
|
$rot
|
||||||
align 1 $X0 $Y0 # align relative to board corner
|
align 1 $X0 $Y0 # align relative to board corner
|
||||||
translate 4mm 4mm # move to PCB zone assigned to project
|
translate 4mm 4mm # move to PCB zone assigned to project
|
||||||
@ -87,7 +89,8 @@ $write mill.gp
|
|||||||
remainder
|
remainder
|
||||||
empty
|
empty
|
||||||
|
|
||||||
gerber $MILL_OUT $edges
|
`if [ "$edges" != "${edges%.gp}" ]; then echo gnuplot $MILL_OUT $edges;
|
||||||
|
else echo gerber $MILL_OUT $edges; fi`
|
||||||
offset
|
offset
|
||||||
append mill.gp
|
append mill.gp
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user