Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

34 linhas
571 B

  1. #!/bin/sh -
  2. COD=$1
  3. if [ ! -d "$COD" ]; then
  4. echo "usage: $0 <checkoutdir>"
  5. echo ""
  6. echo "checkoutdir is the directory where the STM32CubeXX git repos"
  7. echo "are."
  8. exit 1
  9. fi
  10. err=0
  11. while read lclfn cube cubefn; do
  12. cubefile="$COD/$cube/$cubefn"
  13. if [ ! -f "$cubefile" ]; then
  14. echo file "$cubefile" does not exist, but specified.
  15. err=1
  16. continue
  17. fi
  18. if ! cmp -s "$cubefile" "$lclfn"; then
  19. echo "updating $lclfn"
  20. fi
  21. cp "$cubefile" "$lclfn"
  22. git add "$lclfn"
  23. done << EOF
  24. $(cat .srcs)
  25. EOF
  26. if [ x"$err" != x"0" ]; then
  27. echo There was one or more errors.
  28. fi