summaryrefslogtreecommitdiffstats
path: root/Utilities/Scripts
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-08-28 15:13:26 (GMT)
committerBrad King <brad.king@kitware.com>2017-08-30 14:12:10 (GMT)
commitee68d3eb8c487980b98f098a970fae004c6994ff (patch)
treeef0fcd14547f8e6d58e82dfc4c97e4c9b04d88f1 /Utilities/Scripts
parentfff28e30cd01a88b2e5f67db2aaf4c068f1bfc89 (diff)
downloadCMake-ee68d3eb8c487980b98f098a970fae004c6994ff.zip
CMake-ee68d3eb8c487980b98f098a970fae004c6994ff.tar.gz
CMake-ee68d3eb8c487980b98f098a970fae004c6994ff.tar.bz2
jsoncpp: Add script to update from upstream
Diffstat (limited to 'Utilities/Scripts')
-rwxr-xr-xUtilities/Scripts/update-jsoncpp.bash33
1 files changed, 33 insertions, 0 deletions
diff --git a/Utilities/Scripts/update-jsoncpp.bash b/Utilities/Scripts/update-jsoncpp.bash
new file mode 100755
index 0000000..6b6ca6f
--- /dev/null
+++ b/Utilities/Scripts/update-jsoncpp.bash
@@ -0,0 +1,33 @@
+#!/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.0.0"
+readonly shortlog=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"