update-nghttp2.bash 842 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env bash
  2. set -e
  3. set -x
  4. shopt -s dotglob
  5. readonly name="nghttp2"
  6. readonly ownership="nghttp2 upstream <[email protected]>"
  7. readonly subtree="Utilities/cmnghttp2"
  8. readonly repo="https://github.com/nghttp2/nghttp2.git"
  9. readonly tag="v1.52.0" # When updating, sync PACKAGE_VERSION below!
  10. readonly shortlog=false
  11. readonly exact_tree_match=false
  12. readonly paths="
  13. COPYING
  14. lib/*.c
  15. lib/*.h
  16. lib/includes/nghttp2/nghttp2.h
  17. lib/includes/nghttp2/nghttp2ver.h.in
  18. "
  19. extract_source () {
  20. git_archive
  21. pushd "${extractdir}/${name}-reduced"
  22. echo "* -whitespace" > .gitattributes
  23. mv lib/includes/nghttp2/nghttp2ver.h.in lib/includes/nghttp2/nghttp2ver.h
  24. sed -i 's/@PACKAGE_VERSION@/1.52.0/;s/@PACKAGE_VERSION_NUM@/0x013400/' lib/includes/nghttp2/nghttp2ver.h
  25. popd
  26. }
  27. . "${BASH_SOURCE%/*}/update-third-party.bash"