2020-07-09 07:27:20 -07:00
|
|
|
#!/bin/bash
|
2020-07-03 08:03:50 -07:00
|
|
|
|
2020-07-11 19:57:00 -07:00
|
|
|
INTERACTIVE_HTML_BOM_NO_DISPLAY="true"
|
2023-03-13 13:40:24 -07:00
|
|
|
ibom() {
|
|
|
|
python3 hardware/InteractiveHtmlBom/InteractiveHtmlBom/generate_interactive_bom.py --no-browser --name-format "%f_latest" --dest-dir ../ibom --include-nets $@
|
|
|
|
}
|
2020-07-03 08:03:50 -07:00
|
|
|
|
2023-03-13 13:40:24 -07:00
|
|
|
echo "Current directory: $(pwd)"
|
|
|
|
[ $(basename $(pwd)) = 'rusefi' ] || { echo "Not in 'rusefi' directory. Was this invoked from the wrong directory?"; exit 1; }
|
2020-07-03 08:03:50 -07:00
|
|
|
|
2021-01-28 16:41:24 -08:00
|
|
|
for f in $(ls hardware/*/*.kicad_pcb); do
|
|
|
|
if ls $(dirname $f)/$(basename $f .kicad_pcb).net 2>/dev/null; then
|
2023-03-13 13:40:24 -07:00
|
|
|
ibom --netlist-file $(ls $(dirname $f)/$(basename $f .kicad_pcb).net) $f
|
2021-01-28 16:41:24 -08:00
|
|
|
else
|
2023-03-13 13:40:24 -07:00
|
|
|
ibom $f
|
2021-01-28 16:41:24 -08:00
|
|
|
fi
|
|
|
|
done
|