summaryrefslogtreecommitdiffstats
path: root/Utilities/Scripts/update-cppdap.bash
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-05-26 13:33:34 (GMT)
committerBrad King <brad.king@kitware.com>2023-05-26 13:33:34 (GMT)
commitbd58bc7817e9546cb6726a52657f54b1cde59b0c (patch)
tree0f2fd95dd4580e4cc7141a08e937452cf259b2ba /Utilities/Scripts/update-cppdap.bash
parent172045b53b3403fb6049b5a416e7f79848eb70a3 (diff)
downloadCMake-bd58bc7817e9546cb6726a52657f54b1cde59b0c.zip
CMake-bd58bc7817e9546cb6726a52657f54b1cde59b0c.tar.gz
CMake-bd58bc7817e9546cb6726a52657f54b1cde59b0c.tar.bz2
cppdap: Add script to import version as of 2023-05-25
Co-authored-by: Glen Chung <kuchung@microsoft.com>
Diffstat (limited to 'Utilities/Scripts/update-cppdap.bash')
-rwxr-xr-xUtilities/Scripts/update-cppdap.bash30
1 files changed, 30 insertions, 0 deletions
diff --git a/Utilities/Scripts/update-cppdap.bash b/Utilities/Scripts/update-cppdap.bash
new file mode 100755
index 0000000..fd4f8cb
--- /dev/null
+++ b/Utilities/Scripts/update-cppdap.bash
@@ -0,0 +1,30 @@
+#!/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"