diff options
Diffstat (limited to 'convert.sh')
-rwxr-xr-x | convert.sh | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -33,13 +33,24 @@ mkdir "${kicaddir}" cp ${altiumdir}/*.{sch,lib} "${kicaddir}"/ rm ${kicaddir}/rev02*-cache.lib cp ${altiumdir}/CrypTech-PcbDoc.kicad_pcb "${kicaddir}/Cryptech Alpha.kicad_pcb" +cp -rp ${altiumdir}/wrlshp ${kicaddir}/wrlshp cp "Cryptech Alpha.pro.template" "${kicaddir}/Cryptech Alpha.pro" cp "Cryptech Alpha.sch.template" "${kicaddir}/Cryptech Alpha.sch" +# Fix wrl paths +wrlpath=$(readlink -f ${altiumdir}/wrlshp) +sed -i -e "s!${wrlpath}!wrlshp!g" ${kicaddir}/rev02_* + +cd ${kicaddir} + # Change to more sensible filenames -cd "${kicaddir}" rename 's/-SchDoc//' rev02_* -sed -i -e 's/-SchDoc//g' * +sed -i -e 's/-SchDoc//g' *.{sch,lib} + +# Change some PCB parameters +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" # Sheet number fixups. This hides all the hierarchical sub-sheets from the project view. num_sheets=$(ls Cryptech\ Alpha.sch rev02*sch | wc -l) |