aboutsummaryrefslogtreecommitdiff
path: root/convert.sh
diff options
context:
space:
mode:
authorFredrik Thulin <fredrik@thulin.net>2018-04-26 17:57:59 +0200
committerFredrik Thulin <fredrik@thulin.net>2018-04-26 17:57:59 +0200
commita2ac49201fb703691c67495deacda21d2e8388c7 (patch)
treeccb6f8ac3c708cae05067f1e2fe085a915f47e34 /convert.sh
parent67798051878f1a1b5502c64de2ba17d6b732059a (diff)
change segments to gr_line on non-copper layer Eco2.User
Diffstat (limited to 'convert.sh')
-rwxr-xr-xconvert.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/convert.sh b/convert.sh
index ca8bc25..9f26a6a 100755
--- a/convert.sh
+++ b/convert.sh
@@ -97,6 +97,10 @@ ls Cryptech*Alpha.lib rev02*sch | while read file; do
sed -i -e "s#I/SN#I_SN#g" "${file}"
done
+# Segments on non-copper layer Eco2.User are not visible, and causes ERC warnings.
+# Turn them into graphical lines instead.
+sed -i -e 's/segment \(.*\)layer Eco2.User.*/gr_line \1layer Eco2.User\)\)/g' Cryptech\ Alpha.kicad_pcb
+
# Set all schematic footprints from the PCB
../set-footprints-from-pcb.py Cryptech?Alpha.kicad_pcb *.sch