mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
kwiml: Update script to get version header
This commit is contained in:
committed by
Brad King
parent
2a73de8f46
commit
25c05b0bac
@@ -8,7 +8,7 @@ readonly name="KWIML"
|
||||
readonly ownership="KWIML Upstream <kwrobot@kitware.com>"
|
||||
readonly subtree="Utilities/KWIML"
|
||||
readonly repo="https://gitlab.kitware.com/utils/kwiml.git"
|
||||
readonly tag="master"
|
||||
readonly tag="master" # When updating, sync KWIML_VERSION below!
|
||||
readonly shortlog=true
|
||||
readonly exact_tree_match=false
|
||||
readonly paths="
|
||||
@@ -16,6 +16,10 @@ readonly paths="
|
||||
|
||||
extract_source () {
|
||||
git_archive
|
||||
pushd "${extractdir}/${name}-reduced"
|
||||
cp src/version.h.in include/kwiml/version.h
|
||||
sed -i 's/@KWIML_VERSION@/1.0.0/;s/@KWIML_VERSION_DECIMAL@/1000000/' include/kwiml/version.h
|
||||
popd
|
||||
}
|
||||
|
||||
. "${BASH_SOURCE%/*}/update-third-party.bash"
|
||||
|
||||
Reference in New Issue
Block a user