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