update-zstd.bash 696 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/env bash
  2. set -e
  3. set -x
  4. shopt -s dotglob
  5. readonly name="zstd"
  6. readonly ownership="zstd upstream <[email protected]>"
  7. readonly subtree="Utilities/cmzstd"
  8. readonly repo="https://github.com/facebook/zstd.git"
  9. readonly tag="v1.5.5"
  10. readonly shortlog=false
  11. readonly paths="
  12. LICENSE
  13. README.md
  14. lib/common/*.c
  15. lib/common/*.h
  16. lib/compress/*.c
  17. lib/compress/*.h
  18. lib/decompress/*.c
  19. lib/decompress/*.h
  20. lib/deprecated/*.c
  21. lib/deprecated/*.h
  22. lib/dictBuilder/*.c
  23. lib/dictBuilder/*.h
  24. lib/*.h
  25. "
  26. extract_source () {
  27. git_archive
  28. pushd "${extractdir}/${name}-reduced"
  29. echo "* -whitespace" > .gitattributes
  30. popd
  31. }
  32. . "${BASH_SOURCE%/*}/update-third-party.bash"