update-cppdap.bash 653 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/env bash
  2. set -e
  3. set -x
  4. shopt -s dotglob
  5. readonly name="cppdap"
  6. readonly ownership="cppdap Upstream <[email protected]>"
  7. readonly subtree="Utilities/cmcppdap"
  8. readonly repo="https://github.com/google/cppdap.git"
  9. readonly tag="03cc18678ed2ed8b2424ec99dee7e4655d876db5" # 2023-05-25
  10. readonly shortlog=false
  11. readonly paths="
  12. LICENSE
  13. include
  14. src
  15. "
  16. extract_source () {
  17. git_archive
  18. pushd "${extractdir}/${name}-reduced"
  19. echo "* -whitespace" > .gitattributes
  20. fromdos LICENSE include/dap/* src/*
  21. echo "" >> LICENSE
  22. echo "" >> src/nlohmann_json_serializer.h
  23. popd
  24. }
  25. . "${BASH_SOURCE%/*}/update-third-party.bash"