Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/Scripts/update-librhash.bash
3148 views
1
#!/usr/bin/env bash
2
3
set -e
4
set -x
5
shopt -s dotglob
6
7
readonly name="librhash"
8
readonly ownership="librhash upstream <[email protected]>"
9
readonly subtree="Utilities/cmlibrhash"
10
readonly repo="https://github.com/rhash/rhash.git"
11
readonly tag="v1.4.4"
12
readonly shortlog=false
13
readonly paths="
14
COPYING
15
librhash/algorithms.c
16
librhash/algorithms.h
17
librhash/byte_order.c
18
librhash/byte_order.h
19
librhash/hex.c
20
librhash/hex.h
21
librhash/md5.c
22
librhash/md5.h
23
librhash/rhash.c
24
librhash/rhash.h
25
librhash/sha1.c
26
librhash/sha1.h
27
librhash/sha256.c
28
librhash/sha256.h
29
librhash/sha3.c
30
librhash/sha3.h
31
librhash/sha512.c
32
librhash/sha512.h
33
librhash/ustd.h
34
librhash/util.c
35
librhash/util.h
36
"
37
38
extract_source () {
39
git_archive
40
pushd "${extractdir}/${name}-reduced"
41
echo "* -whitespace" > .gitattributes
42
popd
43
}
44
45
. "${BASH_SOURCE%/*}/update-third-party.bash"
46
47