aboutsummaryrefslogtreecommitdiff
path: root/convert.sh
diff options
context:
space:
mode:
authorFredrik Thulin <fredrik@thulin.net>2018-05-21 10:16:59 +0200
committerFredrik Thulin <fredrik@thulin.net>2018-05-21 10:16:59 +0200
commit72df6a6b57301ac33b89313c000ac6ce24ae3bcc (patch)
tree0fb31b98b320b2dc9ea4e8c1df43e81b7df9393a /convert.sh
parent8fbff6d8695d53bf0e7137f3f2dadfa116d8bb06 (diff)
PCB footprint path fixes
Diffstat (limited to 'convert.sh')
-rwxr-xr-xconvert.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/convert.sh b/convert.sh
index 4e886ac..74f6e61 100755
--- a/convert.sh
+++ b/convert.sh
@@ -212,6 +212,9 @@ sed -i -e 's/segment \(.*\)layer Eco2.User.*/gr_line \1layer Eco2.User\)\)/g' Cr
# Set all schematic footprints from the PCB
../set-footprints-from-pcb.py Cryptech?Alpha.kicad_pcb *.sch
+# Fix paths of all footprints in the PCB
+sed -i -e "s/[(]module /\(module Cryptech_Alpha_Footprints:/" Cryptech\ Alpha.kicad_pcb
+
# Make further modifications to the layout using KiCAD's Python bindings
test -d ../tmp || mkdir ../tmp
cp "Cryptech Alpha.kicad_pcb" "../tmp/Cryptech Alpha.kicad_pcb.a2k-out"