update-zlib.bash 1018 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #!/usr/bin/env bash
  2. set -e
  3. set -x
  4. shopt -s dotglob
  5. readonly name="zlib"
  6. readonly ownership="zlib upstream <[email protected]>"
  7. readonly subtree="Utilities/cmzlib"
  8. readonly repo="https://github.com/madler/zlib.git"
  9. readonly tag="v1.3.1" # When updating, sync Copyright.txt below!
  10. readonly shortlog=false
  11. readonly exact_tree_match=false
  12. readonly paths="
  13. README
  14. adler32.c
  15. compress.c
  16. crc32.c
  17. crc32.h
  18. deflate.c
  19. deflate.h
  20. gzclose.c
  21. gzguts.h
  22. gzlib.c
  23. gzread.c
  24. gzwrite.c
  25. inffast.c
  26. inffast.h
  27. inffixed.h
  28. inflate.c
  29. inflate.h
  30. inftrees.c
  31. inftrees.h
  32. trees.c
  33. trees.h
  34. uncompr.c
  35. zconf.h
  36. zlib.h
  37. zutil.c
  38. zutil.h
  39. "
  40. extract_source () {
  41. git_archive
  42. pushd "${extractdir}/${name}-reduced"
  43. echo "* -whitespace" > .gitattributes
  44. echo -n "'zlib' general purpose compression library
  45. version 1.3.1, January 22nd, 2024
  46. Copyright " > Copyright.txt
  47. sed -n '/^ (C) 1995-/,+19 {s/^ \?//;p}' README >> Copyright.txt
  48. popd
  49. }
  50. . "${BASH_SOURCE%/*}/update-third-party.bash"