Files
CMake/Utilities/Scripts/update-jsoncpp.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

35 lines
703 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -x
shopt -s dotglob
readonly name="jsoncpp"
readonly ownership="JsonCpp Upstream <kwrobot@kitware.com>"
readonly subtree="Utilities/cmjsoncpp"
readonly repo="https://github.com/open-source-parsers/jsoncpp.git"
readonly tag="1.9.6"
readonly shortlog=false
readonly exact_tree_match=false
readonly paths="
LICENSE
include/json
src/lib_json
"
readonly remove="
include/json/autolink.h
src/lib_json/CMakeLists.txt
src/lib_json/sconscript
src/lib_json/version.h.in
"
extract_source () {
git_archive
pushd "${extractdir}/${name}-reduced"
rm $remove
echo "* -whitespace" > .gitattributes
popd
}
. "${BASH_SOURCE%/*}/update-third-party.bash"