More Kicad Diff changes (#1694)

* switch to lftp, fix path, and remove old

* add release flag

* remove release suffix

* wrong flag

* use my fork instead
This commit is contained in:
David Holdeman 2020-08-14 19:04:28 -05:00 committed by GitHub
parent 5cdfcc41d6
commit 755a3b5974
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -15,14 +15,14 @@ jobs:
submodules: recursive
fetch-depth: 0
- name: Install ncftp, kicad, and tk bindings
- name: Install lftp, kicad, and tk bindings
run: |
sudo add-apt-repository ppa:js-reynaud/kicad-5.1
sudo apt-get update
sudo apt-get install ncftp kicad python3-tk
sudo apt-get install lftp kicad python3-tk
- name: Get KiCad-Diff
run: git clone https://github.com/Gasman2014/KiCad-Diff.git
run: git clone https://github.com/chuckwagoncomputing/KiCad-Diff.git
- name: Set FTP variables
run: |

View File

@ -13,8 +13,8 @@
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
echo "mkdir diffs/plots_$(basename "$1" .kicad_pcb)" | ncftp -u "$RUSEFI_DOXYGEN_FTP_USER" -p "$RUSEFI_DOXYGEN_FTP_PASS" "$RUSEFI_FTP_SERVER"
ncftpput -R -v -u "$RUSEFI_DOXYGEN_FTP_USER" -p "$RUSEFI_DOXYGEN_FTP_PASS" "$RUSEFI_FTP_SERVER" /diffs/plots_$(basename "$1" .kicad_pcb) $(dirname "$1")/plots
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