summaryrefslogtreecommitdiffstats
path: root/Utilities/Scripts/update-jsoncpp.bash
blob: f8fe54462024444c595d3d70abf24b87b2dc5b01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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.8.2"
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"