From a14015dcd95a61a01fb4409d4400d84cfc88c310 Mon Sep 17 00:00:00 2001 From: Fredrik Thulin Date: Thu, 19 Apr 2018 18:53:08 +0200 Subject: Replace slashes in component names, doesn't fly with KiCAD nightly --- convert.sh | 5 +++++ rev03-KiCad/Cryptech Alpha.lib | 14 +++++++------- rev03-KiCad/rev02_08.sch | 6 +++--- rev03-KiCad/rev02_12.sch | 4 ++-- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/convert.sh b/convert.sh index 1cac09a..0f4fa25 100755 --- a/convert.sh +++ b/convert.sh @@ -90,6 +90,11 @@ ls Cryptech\ Alpha.sch rev02*sch | while read file; do num=$[$num + 1] done +# Replace slashes in component names, seems to not work in KiCAD nightly +ls Cryptech\ Alpha.lib rev02*sch | while read file; do + sed -i -e "s#I/SN#I_SN#g" "${file}" +done + # 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" diff --git a/rev03-KiCad/Cryptech Alpha.lib b/rev03-KiCad/Cryptech Alpha.lib index 0a846b0..9e40e2c 100644 --- a/rev03-KiCad/Cryptech Alpha.lib +++ b/rev03-KiCad/Cryptech Alpha.lib @@ -1455,11 +1455,11 @@ T 0 -720 360 50 0 1 1 5.10 Normal 1 C C ENDDRAW ENDDEF # -# MCP79412-I/SN +# MCP79412-I_SN # -DEF MCP79412-I/SN IC 0 40 Y Y 1 F N +DEF MCP79412-I_SN IC 0 40 Y Y 1 F N F0 "U" -430 -730 60 H V L BNN -F1 "MCP79412-I/SN" -420 430 60 H V L BNN +F1 "MCP79412-I_SN" -420 430 60 H V L BNN F2 "" 0 0 60 H V C CNN F3 "" 0 0 60 H V C CNN DRAW @@ -1475,7 +1475,7 @@ X VSS 4 -600 -400 200 R 70 70 0 1 W X SDA 5 600 -100 200 L 70 70 0 1 P X SCL 6 600 0 200 L 70 70 0 1 P X MFP 7 600 100 200 L 70 70 0 1 P -T 0 -620 430 50 0 1 1 MCP79412-I/SN Normal 1 C C +T 0 -620 430 50 0 1 1 MCP79412-I_SN Normal 1 C C T 0 -620 430 50 0 1 1 2103565 Normal 1 C C T 0 -620 430 50 0 1 1 94T5863 Normal 1 C C T 0 -620 430 50 0 1 1 SOIC-8 Normal 1 C C @@ -2007,9 +2007,9 @@ T 0 -410 420 50 0 1 1 2425618 Normal 1 C C ENDDRAW ENDDEF # -# 23K640-I/SN +# 23K640-I_SN # -DEF 23K640-I/SN IC 0 40 Y Y 1 F N +DEF 23K640-I_SN IC 0 40 Y Y 1 F N F0 "U" -530 -930 60 H V L BNN F1 "" 0 0 60 H V C CNN F2 "" 0 0 60 H V C CNN @@ -2027,7 +2027,7 @@ X SCK 6 -700 0 200 R 70 70 0 1 P X ~HOLD 7 -700 -100 200 R 70 70 0 1 P X SI 5 -700 100 200 R 70 70 0 1 P X VSS 4 -700 -500 200 R 70 70 0 1 W -T 0 -720 630 50 0 1 1 23K640-I/SN Normal 1 C C +T 0 -720 630 50 0 1 1 23K640-I_SN Normal 1 C C T 0 -720 630 50 0 1 1 1695549 Normal 1 C C T 0 -720 630 50 0 1 1 71P4706 Normal 1 C C T 0 -720 630 50 0 1 1 SOIC-8 Normal 1 C C diff --git a/rev03-KiCad/rev02_08.sch b/rev03-KiCad/rev02_08.sch index ce77576..063d789 100644 --- a/rev03-KiCad/rev02_08.sch +++ b/rev03-KiCad/rev02_08.sch @@ -55,7 +55,7 @@ Real Time Clock Text Notes 7600 5060 0 60 ~ 12 U7 Text Notes 7600 5180 0 60 ~ 12 -MCP79412-I/SN +MCP79412-I_SN Text Notes 6240 6640 0 60 ~ 12 X1 Text Notes 6250 6200 0 60 ~ 12 @@ -195,11 +195,11 @@ F 3 "" H 9100 4800 70 0000 C CNN 1 0 0 -1 $EndComp $Comp -L MCP79412-I/SN U7 +L MCP79412-I_SN U7 U 1 1 58024021 P 8000 5600 F 0 "U7" H 7570 4870 60 0000 L BNN -F 1 "MCP79412-I/SN" H 7580 6030 60 0000 L BNN +F 1 "MCP79412-I_SN" H 7580 6030 60 0000 L BNN F 2 "" H 7580 6030 60 0000 C CNN F 3 "" H 7580 6030 60 0000 C CNN 1 8000 5600 diff --git a/rev03-KiCad/rev02_12.sch b/rev03-KiCad/rev02_12.sch index 5057a09..b0b3045 100644 --- a/rev03-KiCad/rev02_12.sch +++ b/rev03-KiCad/rev02_12.sch @@ -59,7 +59,7 @@ Master Key Memory Text Notes 11890 4940 0 60 ~ 12 U12 Text Notes 11760 6540 0 60 ~ 12 -23K640-I/SN +23K640-I_SN Text Notes 7500 6200 1 60 ~ 12 JP6 Text Notes 7770 6200 1 60 ~ 12 @@ -339,7 +339,7 @@ Wire Wire Line Wire Wire Line 10500 5400 10100 5400 $Comp -L 23K640-I/SN U12 +L 23K640-I_SN U12 U 1 1 58023F82 P 12100 5600 F 0 "U12" H 11570 4670 60 0000 L BNN -- cgit v1.2.3