aboutsummaryrefslogtreecommitdiff
path: root/convert.sh
diff options
context:
space:
mode:
Diffstat (limited to 'convert.sh')
-rwxr-xr-xconvert.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/convert.sh b/convert.sh
index f808bef..ca8bc25 100755
--- a/convert.sh
+++ b/convert.sh
@@ -43,7 +43,7 @@ cd ..
rm -rf "${kicaddir}"
mkdir "${kicaddir}"
-git checkout "${kicaddir}"/GerberOutput
+git checkout "${kicaddir}"/{GerberOutput,footprints.pretty,fp-lib-table}
cp ${altiumdir}/*.{sch,lib} "${kicaddir}"/
rm ${kicaddir}/rev02*-cache.lib
cp ${altiumdir}/CrypTech-PcbDoc.kicad_pcb "${kicaddir}/Cryptech Alpha.kicad_pcb"
@@ -97,6 +97,9 @@ ls Cryptech*Alpha.lib rev02*sch | while read file; do
sed -i -e "s#I/SN#I_SN#g" "${file}"
done
+# Set all schematic footprints from the PCB
+../set-footprints-from-pcb.py Cryptech?Alpha.kicad_pcb *.sch
+
# 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"