aboutsummaryrefslogtreecommitdiff
path: root/convert.sh
diff options
context:
space:
mode:
authorFredrik Thulin <fredrik@thulin.net>2018-04-19 18:53:08 +0200
committerFredrik Thulin <fredrik@thulin.net>2018-04-19 18:53:08 +0200
commita14015dcd95a61a01fb4409d4400d84cfc88c310 (patch)
tree3fab1571e54318f767a41ae980df720003063feb /convert.sh
parent0d7badadc5feb2aa741c4f2a8ab6ac025c3a7664 (diff)
Replace slashes in component names, doesn't fly with KiCAD nightly
Diffstat (limited to 'convert.sh')
-rwxr-xr-xconvert.sh5
1 files changed, 5 insertions, 0 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"