Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/Scripts/update-kwiml.bash
5012 views
1
#!/usr/bin/env bash
2
3
set -e
4
set -x
5
shopt -s dotglob
6
7
readonly name="KWIML"
8
readonly ownership="KWIML Upstream <[email protected]>"
9
readonly subtree="Utilities/KWIML"
10
readonly repo="https://gitlab.kitware.com/utils/kwiml.git"
11
readonly tag="master" # When updating, sync KWIML_VERSION below!
12
readonly shortlog=true
13
readonly exact_tree_match=false
14
readonly paths="
15
"
16
17
extract_source () {
18
git_archive
19
pushd "${extractdir}/${name}-reduced"
20
cp src/version.h.in include/kwiml/version.h
21
sed -i 's/@KWIML_VERSION@/1.0.0/;s/@KWIML_VERSION_DECIMAL@/1000000/' include/kwiml/version.h
22
popd
23
}
24
25
. "${BASH_SOURCE%/*}/update-third-party.bash"
26
27