S&B Volcano vaporizer remote control with Pi Pico W
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pack_data.sh 430B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. set -euo pipefail
  3. cd "$(dirname "$0")"
  4. echo "Packing data"
  5. rm -rf build/src
  6. mkdir -p build/src
  7. cp COPYING build/src
  8. cp README.md build/src
  9. cp CMakeLists.txt build/src
  10. cp .gitmodules build/src/gitmodules
  11. cp -r include build/src
  12. cp -r src build/src
  13. cd build
  14. rm -rf data.tar data.tar.xz
  15. tar -f data.tar -c src
  16. xz -z -9 data.tar
  17. xxd -i data.tar.xz > pack_data.h
  18. sed -i 's/unsigned/static const unsigned/g' pack_data.h