diff options
author | Brad King <brad.king@kitware.com> | 2016-11-03 15:11:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-03 17:45:22 (GMT) |
commit | 798b0adc628ab16dbb4d04ef444b8e7db4f5cffa (patch) | |
tree | cac9682391f470cdc14629788b03e57805690f7e | |
parent | 60d80bca4afcfb3a38b588a5a2060cc275b4afbc (diff) | |
download | CMake-798b0adc628ab16dbb4d04ef444b8e7db4f5cffa.zip CMake-798b0adc628ab16dbb4d04ef444b8e7db4f5cffa.tar.gz CMake-798b0adc628ab16dbb4d04ef444b8e7db4f5cffa.tar.bz2 |
Add script to update librhash from upstream
-rwxr-xr-x | Utilities/Scripts/update-librhash.bash | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Utilities/Scripts/update-librhash.bash b/Utilities/Scripts/update-librhash.bash new file mode 100755 index 0000000..2f67ea2 --- /dev/null +++ b/Utilities/Scripts/update-librhash.bash @@ -0,0 +1,43 @@ +#!/usr/bin/env bash + +set -e +set -x +shopt -s dotglob + +readonly name="librhash" +readonly ownership="librhash upstream <kwrobot@kitware.com>" +readonly subtree="Utilities/cmlibrhash" +readonly repo="https://github.com/rhash/rhash.git" +readonly tag="master" +readonly shortlog=false +readonly paths=" + COPYING + README + librhash/algorithms.c + librhash/algorithms.h + librhash/byte_order.c + librhash/byte_order.h + librhash/hex.c + librhash/hex.h + librhash/md5.c + librhash/md5.h + librhash/rhash.c + librhash/rhash.h + librhash/sha1.c + librhash/sha1.h + librhash/sha256.c + librhash/sha256.h + librhash/sha512.c + librhash/sha512.h + librhash/ustd.h + librhash/util.h +" + +extract_source () { + git_archive + pushd "${extractdir}/${name}-reduced" + echo "* -whitespace" > .gitattributes + popd +} + +. "${BASH_SOURCE%/*}/update-third-party.bash" |