aboutsummaryrefslogtreecommitdiff
path: root/convert.sh
diff options
context:
space:
mode:
authorFredrik Thulin <fredrik@thulin.net>2018-05-21 10:39:03 +0200
committerFredrik Thulin <fredrik@thulin.net>2018-05-21 10:39:03 +0200
commite66ccc52fcbdccee3c5f3edc7a54c0da97d3575c (patch)
tree244d26707074e1df925d129dc9cc430fa7ce1f59 /convert.sh
parent72df6a6b57301ac33b89313c000ac6ce24ae3bcc (diff)
change default named nets to match what a schematic update wants to turn them into
Diffstat (limited to 'convert.sh')
-rwxr-xr-xconvert.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/convert.sh b/convert.sh
index 74f6e61..fe6b3f0 100755
--- a/convert.sh
+++ b/convert.sh
@@ -214,6 +214,8 @@ sed -i -e 's/segment \(.*\)layer Eco2.User.*/gr_line \1layer Eco2.User\)\)/g' Cr
# Fix paths of all footprints in the PCB
sed -i -e "s/[(]module /\(module Cryptech_Alpha_Footprints:/" Cryptech\ Alpha.kicad_pcb
+# change default named nets to match what a schematic update wants to turn them into
+sed -E -i -e 's/Net([A-Z0-9]+)_([0-9])/"Net-(\1-Pad\2)"/g' Cryptech\ Alpha.kicad_pcb
# Make further modifications to the layout using KiCAD's Python bindings
test -d ../tmp || mkdir ../tmp