S&B Volcano vaporizer remote control with Pi Pico W
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

pack_data.sh 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/bash
  2. # ----------------------------------------------------------------------------
  3. # Copyright (c) 2023 Thomas Buck (thomas@xythobuz.de)
  4. #
  5. # This program is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # See <http://www.gnu.org/licenses/>.
  16. # ----------------------------------------------------------------------------
  17. set -euo pipefail
  18. cd "$(dirname "$0")"
  19. echo "Packing data"
  20. rm -rf build/src
  21. mkdir -p build/src
  22. cp COPYING build/src
  23. cp README.md build/src
  24. cp CMakeLists.txt build/src
  25. cp .gitmodules build/src/gitmodules
  26. cp -r include build/src
  27. cp -r conf build/src
  28. cp -r src build/src
  29. cd build
  30. rm -rf data.tar data.tar.xz
  31. tar -f data.tar -c src
  32. xz -z -9 data.tar
  33. xxd -i data.tar.xz > pack_data.h
  34. sed -i 's/unsigned/static const unsigned/g' pack_data.h