update-zlib.bash 943 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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.2.12"
  10. readonly shortlog=false
  11. readonly paths="
  12. README
  13. adler32.c
  14. compress.c
  15. crc32.c
  16. crc32.h
  17. deflate.c
  18. deflate.h
  19. gzclose.c
  20. gzguts.h
  21. gzlib.c
  22. gzread.c
  23. gzwrite.c
  24. inffast.c
  25. inffast.h
  26. inffixed.h
  27. inflate.c
  28. inflate.h
  29. inftrees.c
  30. inftrees.h
  31. trees.c
  32. trees.h
  33. uncompr.c
  34. zconf.h
  35. zlib.h
  36. zutil.c
  37. zutil.h
  38. "
  39. extract_source () {
  40. git_archive
  41. pushd "${extractdir}/${name}-reduced"
  42. echo "* -whitespace" > .gitattributes
  43. echo -n "'zlib' general purpose compression library
  44. version 1.2.12, March 27th, 2022
  45. Copyright " > Copyright.txt
  46. sed -n '/^ (C) 1995-/,+19 {s/^ \?//;p}' README >> Copyright.txt
  47. popd
  48. }
  49. . "${BASH_SOURCE%/*}/update-third-party.bash"