Files
CMake/Utilities/Scripts/update-zstd.bash
Ben Boeckel e1f4a35171 Utilities/Scripts: do not use exact tree match
CMake patches its third party imports directly, so skip the exact match
strategy.
2025-11-08 07:45:05 -05:00

38 lines
728 B
Bash
Executable File

#!/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.5.5"
readonly shortlog=false
readonly exact_tree_match=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/*.h
"
extract_source () {
git_archive
pushd "${extractdir}/${name}-reduced"
echo "* -whitespace" > .gitattributes
popd
}
. "${BASH_SOURCE%/*}/update-third-party.bash"