From b8c927831fc99b75aaa44482ad1fb35ede26c6b1 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 6 Aug 2013 19:15:48 -0300 Subject: [PATCH] cameo/templates/mkmk-simple: support new edge file names KiCad recently changes file names. Edges used to be named *-PCB_Edges.gbr but can now be named *-Edge_Cuts.gbr or *-Edge_Cuts.pho --- cameo/templates/mkmk-simple | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/cameo/templates/mkmk-simple b/cameo/templates/mkmk-simple index 3e702a8..177f554 100755 --- a/cameo/templates/mkmk-simple +++ b/cameo/templates/mkmk-simple @@ -42,6 +42,18 @@ if [ "$ROT" ]; then rot="rotate $ROT" fi +edges= +for n in PCB_Edges.gbr Edge_Cuts.gbr Edge_Cuts.pho; do + if [ -r "../$NAME-$n" ]; then + edges=../$NAME-$n + break + fi +done +if [ ! "$edges" ]; then + echo "no edges file found" 1>&2 + exit 1 +fi + write=write yi=0 while [ $yi -lt $YN ]; do @@ -51,7 +63,7 @@ while [ $yi -lt $YN ]; do cameo <