-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbump-version.cmake
14 lines (12 loc) · 1000 Bytes
/
bump-version.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Test with:
# cmake --log-context -D DRYRUN=1 -D CMAKE_MESSAGE_CONTEXT=dkml-runtime-common -D "regex_DKML_VERSION_SEMVER=1[.]2[.]1-[0-9]+" -D "regex_DKML_VERSION_OPAMVER=1[.]2[.]1[~]prerel[0-9]+" -D DKML_VERSION_SEMVER_NEW=1.2.1-3 -D DKML_VERSION_OPAMVER_NEW=1.2.1~prerel3 -D GIT_EXECUTABLE=git -D DKML_RELEASE_OCAML_VERSION=4.14.0 -D DKML_BUMP_VERSION_PARTICIPANT_MODULE=../../../pkg/bump/DkMLBumpVersionParticipant.cmake -P bump-version.cmake
if(NOT DKML_BUMP_VERSION_PARTICIPANT_MODULE)
message(FATAL_ERROR "Missing -D DKML_BUMP_VERSION_PARTICIPANT_MODULE=.../DkMLBumpVersionParticipant.cmake")
endif()
include(${DKML_BUMP_VERSION_PARTICIPANT_MODULE})
DkMLBumpVersionParticipant_PlainReplace(template.dkmlroot)
DkMLBumpVersionParticipant_PlainReplace(README.md)
DkMLBumpVersionParticipant_PlainReplace(unix/crossplatform-functions.sh)
DkMLBumpVersionParticipant_MetaReplace(META)
DkMLBumpVersionParticipant_OpamReplace(dkml-runtime-common.opam)
DkMLBumpVersionParticipant_GitAddAndCommit()