mirror of
https://github.com/OpenFOAM/ThirdParty-6.git
synced 2025-12-08 06:57:43 +00:00
27 lines
577 B
Bash
Executable File
27 lines
577 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="ThirdParty/$name/vtk$name"
|
|
readonly repo="https://gitlab.kitware.com/third-party/jsoncpp.git"
|
|
readonly tag="for/vtk"
|
|
readonly paths="
|
|
.gitattributes
|
|
LICENSE
|
|
" # We amalgamate jsoncpp
|
|
|
|
extract_source () {
|
|
python amalgamate.py
|
|
[ -n "$paths" ] && \
|
|
mv -v $paths "dist"
|
|
mv "dist" "$name-reduced"
|
|
tar -cv "$name-reduced/" | \
|
|
tar -C "$extractdir" -x
|
|
}
|
|
|
|
. "${BASH_SOURCE%/*}/../update-common.sh"
|