1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-05-12 08:05:28 +08:00
CMake/Utilities/Scripts/update-cppdap.bash
Brad King bd58bc7817 cppdap: Add script to import version as of 2023-05-25
Co-authored-by: Glen Chung <kuchung@microsoft.com>
2023-05-26 09:33:34 -04:00

31 lines
653 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -x
shopt -s dotglob
readonly name="cppdap"
readonly ownership="cppdap Upstream <kwrobot@kitware.com>"
readonly subtree="Utilities/cmcppdap"
readonly repo="https://github.com/google/cppdap.git"
readonly tag="03cc18678ed2ed8b2424ec99dee7e4655d876db5" # 2023-05-25
readonly shortlog=false
readonly paths="
LICENSE
include
src
"
extract_source () {
git_archive
pushd "${extractdir}/${name}-reduced"
echo "* -whitespace" > .gitattributes
fromdos LICENSE include/dap/* src/*
echo "" >> LICENSE
echo "" >> src/nlohmann_json_serializer.h
popd
}
. "${BASH_SOURCE%/*}/update-third-party.bash"