mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
zstd: add script to import zstd from upstream
This commit is contained in:
36
Utilities/Scripts/update-zstd.bash
Executable file
36
Utilities/Scripts/update-zstd.bash
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
shopt -s dotglob
|
||||
|
||||
readonly name="zstd"
|
||||
readonly ownership="zstd upstream <kwrobot@kitware.com>"
|
||||
readonly subtree="Utilities/cmzstd"
|
||||
readonly repo="https://github.com/facebook/zstd.git"
|
||||
readonly tag="v1.3.8"
|
||||
readonly shortlog=false
|
||||
readonly paths="
|
||||
LICENSE
|
||||
README.md
|
||||
lib/common/*.c
|
||||
lib/common/*.h
|
||||
lib/compress/*.c
|
||||
lib/compress/*.h
|
||||
lib/decompress/*.c
|
||||
lib/decompress/*.h
|
||||
lib/deprecated/*.c
|
||||
lib/deprecated/*.h
|
||||
lib/dictBuilder/*.c
|
||||
lib/dictBuilder/*.h
|
||||
lib/zstd.h
|
||||
"
|
||||
|
||||
extract_source () {
|
||||
git_archive
|
||||
pushd "${extractdir}/${name}-reduced"
|
||||
echo "* -whitespace" > .gitattributes
|
||||
popd
|
||||
}
|
||||
|
||||
. "${BASH_SOURCE%/*}/update-third-party.bash"
|
||||
Reference in New Issue
Block a user