update-cppdap.bash 723 B

1234567891011121314151617181920212223242526272829303132
  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="c69444ed76f7468b232ac4f989cb8f2bdc100185" # 2024-08-02
  10. readonly shortlog=false
  11. readonly exact_tree_match=false
  12. readonly paths="
  13. LICENSE
  14. include
  15. src
  16. "
  17. extract_source () {
  18. git_archive
  19. pushd "${extractdir}/${name}-reduced"
  20. echo "* -whitespace" > .gitattributes
  21. fromdos LICENSE include/dap/* src/*
  22. echo "" >> LICENSE
  23. echo "" >> src/content_stream.cpp
  24. echo "" >> src/nlohmann_json_serializer.h
  25. popd
  26. }
  27. . "${BASH_SOURCE%/*}/update-third-party.bash"