parent
9fe9e92478
commit
be01ffb2a7
|
@ -34,4 +34,4 @@ jobs:
|
||||||
|
|
||||||
- name: Generate diffs
|
- name: Generate diffs
|
||||||
working-directory: ./hardware
|
working-directory: ./hardware
|
||||||
run: bash generate_diffs.sh
|
run: bash ./rusefi_lib/generate_diffs.sh
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
#####################################################################################
|
|
||||||
# generate_diffs.sh #
|
|
||||||
# 08/13/2020 #
|
|
||||||
# Written By David Holdeman #
|
|
||||||
# Checks for changed .kicad_pcb files, generates visual diffs, and uploads them #
|
|
||||||
# to FTP. #
|
|
||||||
#####################################################################################
|
|
||||||
# The FTP location this uploads to is /diffs/plot_<name of kicad_pcb file, without the extension>
|
|
||||||
# In that directory are subdirectorys containing generated SVGs, as well as a 'web' subdirectory,
|
|
||||||
# which contains index.html. Open that in a web browser and you get a nice visual diff of each layer.
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
function gendiffs() {
|
|
||||||
../KiCad-Diff/kidiff_linux.py -w -s Git -b $(git rev-parse --short HEAD~1) -a $(git rev-parse --short HEAD) -d :0 $1
|
|
||||||
if [ -d $(dirname "$1")/plots ] && [ -n "$RUSEFI_FTP_SERVER" ]; then
|
|
||||||
lftp -u "$RUSEFI_DOXYGEN_FTP_USER","$RUSEFI_DOXYGEN_FTP_PASS" "$RUSEFI_FTP_SERVER" -e \
|
|
||||||
"mirror -Re $(dirname "$1")/plots/ /diffs/plots_$(basename "$1" .kicad_pcb); exit"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
export -f gendiffs
|
|
||||||
|
|
||||||
find . -name "*.kicad_pcb" -exec bash -c 'gendiffs "$0"' {} \;
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 4a06cd724170ead0e4ff36acc30436bf54314eef
|
Subproject commit 4db76351f448a08d811557b45b3fefd2a1ab69f7
|
Loading…
Reference in New Issue