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 <