update-zstd.bash 728 B

12345678910111213141516171819202122232425262728293031323334353637
  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 exact_tree_match=false
  12. readonly paths="
  13. LICENSE
  14. README.md
  15. lib/common/*.c
  16. lib/common/*.h
  17. lib/compress/*.c
  18. lib/compress/*.h
  19. lib/decompress/*.c
  20. lib/decompress/*.h
  21. lib/deprecated/*.c
  22. lib/deprecated/*.h
  23. lib/dictBuilder/*.c
  24. lib/dictBuilder/*.h
  25. lib/*.h
  26. "
  27. extract_source () {
  28. git_archive
  29. pushd "${extractdir}/${name}-reduced"
  30. echo "* -whitespace" > .gitattributes
  31. popd
  32. }
  33. . "${BASH_SOURCE%/*}/update-third-party.bash"