update-nghttp2.bash 810 B

123456789101112131415161718192021222324252627282930
  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 paths="
  12. COPYING
  13. lib/*.c
  14. lib/*.h
  15. lib/includes/nghttp2/nghttp2.h
  16. lib/includes/nghttp2/nghttp2ver.h.in
  17. "
  18. extract_source () {
  19. git_archive
  20. pushd "${extractdir}/${name}-reduced"
  21. echo "* -whitespace" > .gitattributes
  22. mv lib/includes/nghttp2/nghttp2ver.h.in lib/includes/nghttp2/nghttp2ver.h
  23. sed -i 's/@PACKAGE_VERSION@/1.52.0/;s/@PACKAGE_VERSION_NUM@/0x013400/' lib/includes/nghttp2/nghttp2ver.h
  24. popd
  25. }
  26. . "${BASH_SOURCE%/*}/update-third-party.bash"