update-zlib.bash 906 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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.3"
  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. gzio.c
  20. inffast.c
  21. inffast.h
  22. inffixed.h
  23. inflate.c
  24. inflate.h
  25. inftrees.c
  26. inftrees.h
  27. trees.c
  28. trees.h
  29. uncompr.c
  30. zconf.h
  31. zlib.h
  32. zutil.c
  33. zutil.h
  34. "
  35. extract_source () {
  36. git_archive
  37. pushd "${extractdir}/${name}-reduced"
  38. echo "* -whitespace" > .gitattributes
  39. echo -n "'zlib' general purpose compression library
  40. version 1.2.3, July 18th, 2005
  41. Copyright " > Copyright.txt
  42. sed -n '/^ (C) 1995-/,+19 {s/^ \?//;s/2004/2005/;p}' README >> Copyright.txt
  43. popd
  44. }
  45. . "${BASH_SOURCE%/*}/update-third-party.bash"