PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

41 行
852B

  1. #!/bin/sh
  2. #
  3. # Generate an archive with packaged content for easier delivery.
  4. # The generated archive contains:
  5. # - Source files (MIDI.cpp / MIDI.h)
  6. # - Resources (keywords.txt)
  7. # - Examples for Arduino IDE
  8. # - Installation scripts
  9. cd "`dirname "${0}"`"
  10. root="${PWD}/.."
  11. build="$root/build/dist/MIDI"
  12. echo "root: $root"
  13. echo "build: $build"
  14. # Create a destination directory structure
  15. mkdir -p "$build/examples"
  16. mkdir -p "$build/src"
  17. # Copy sources
  18. cp -rf "$root/src" "$build"
  19. # Copy resources
  20. cp -f "$root/keywords.txt" "$build/"
  21. cp -f "$root/library.properties" "$build/"
  22. cp -f "$root/library.json" "$build/"
  23. cp -f "$root/LICENSE" "$build/"
  24. # Copy examples
  25. cp -rf "$root/examples" "$build"
  26. # Generate package
  27. cd "$build/.."
  28. zip -r Arduino_MIDI_Library.zip MIDI
  29. # Generate doc
  30. cd "$root/doc"
  31. doxygen