diff options
Diffstat (limited to 'convert.sh')
-rwxr-xr-x | convert.sh | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -7,6 +7,7 @@ set -e +# this facilitates reproducible conversions, making all timestamps the same for consecutive runs export A2K_STARTTIME="1476542686" altiumdir="rev03-Altium" @@ -51,6 +52,15 @@ sed -i -e 's/-SchDoc//g' *.{sch,lib} sed -i -e 's/trace_min 0.254/trace_min 0.15/g' "Cryptech Alpha.kicad_pcb" # show ratsnest sed -i -e 's/visible_elements 7FFFF77F/visible_elements 7FFFFF7F/g' "Cryptech Alpha.kicad_pcb" +# Power layers +for l in 1 3 4 6; do + sed -i -e "s/${l} In${l}.Cu signal/${l} In${l}.Cu power/g" "Cryptech Alpha.kicad_pcb" +done +# Mixed layers +for l in 2 5; do + sed -i -e "s/${l} In${l}.Cu signal/${l} In${l}.Cu mixed/g" "Cryptech Alpha.kicad_pcb" +done + # Sheet number fixups. This hides all the hierarchical sub-sheets from the project view. num_sheets=$(ls Cryptech\ Alpha.sch rev02*sch | wc -l) |