Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- #!/bin/sh -
-
- COD=$1
-
- if [ ! -d "$COD" ]; then
- echo "usage: $0 <checkoutdir>"
- echo ""
- echo "checkoutdir is the directory where the STM32CubeXX git repos"
- echo "are."
- exit 1
- fi
-
- err=0
-
- while read lclfn cube cubefn; do
- cubefile="$COD/$cube/$cubefn"
- if [ ! -f "$cubefile" ]; then
- echo file "$cubefile" does not exist, but specified.
- err=1
- continue
- fi
- if ! cmp -s "$cubefile" "$lclfn"; then
- echo "updating $lclfn"
- fi
- cp "$cubefile" "$lclfn"
- git add "$lclfn"
- done << EOF
- $(cat .srcs)
- EOF
-
- if [ x"$err" != x"0" ]; then
- echo There was one or more errors.
- fi
|