update-librhash.bash 883 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/usr/bin/env bash
  2. set -e
  3. set -x
  4. shopt -s dotglob
  5. readonly name="librhash"
  6. readonly ownership="librhash upstream <kwrobot@kitware.com>"
  7. readonly subtree="Utilities/cmlibrhash"
  8. readonly repo="https://github.com/rhash/rhash.git"
  9. readonly tag="master"
  10. readonly shortlog=false
  11. readonly paths="
  12. COPYING
  13. README
  14. librhash/algorithms.c
  15. librhash/algorithms.h
  16. librhash/byte_order.c
  17. librhash/byte_order.h
  18. librhash/hex.c
  19. librhash/hex.h
  20. librhash/md5.c
  21. librhash/md5.h
  22. librhash/rhash.c
  23. librhash/rhash.h
  24. librhash/sha1.c
  25. librhash/sha1.h
  26. librhash/sha256.c
  27. librhash/sha256.h
  28. librhash/sha3.c
  29. librhash/sha3.h
  30. librhash/sha512.c
  31. librhash/sha512.h
  32. librhash/ustd.h
  33. librhash/util.h
  34. "
  35. extract_source () {
  36. git_archive
  37. pushd "${extractdir}/${name}-reduced"
  38. echo "* -whitespace" > .gitattributes
  39. popd
  40. }
  41. . "${BASH_SOURCE%/*}/update-third-party.bash"