-
Notifications
You must be signed in to change notification settings - Fork 0
/
bump-version.cmake
19 lines (15 loc) · 1.38 KB
/
bump-version.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Test with:
# cmake --log-context -D DRYRUN=1 -D CMAKE_MESSAGE_CONTEXT=dkml-installer-ocaml-byte -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(README.md)
DkMLBumpVersionParticipant_PlainReplace(dkml-installer-ocaml-offline.opam.template)
DkMLBumpVersionParticipant_PlainReplace(i-offline/winget/manifest/Diskuv.OCamlByte.installer.yaml)
DkMLBumpVersionParticipant_PlainReplace(i-offline/winget/manifest/Diskuv.OCamlByte.locale.en-US.yaml)
DkMLBumpVersionParticipant_PlainReplace(i-offline/winget/manifest/Diskuv.OCamlByte.yaml)
DkMLBumpVersionParticipant_ReleaseDateReplace(i-offline/winget/manifest/Diskuv.OCamlByte.installer.yaml)
DkMLBumpVersionParticipant_CopyrightReplace(i-offline/winget/manifest/Diskuv.OCamlByte.locale.en-US.yaml)
DkMLBumpVersionParticipant_DuneProjectReplace(dune-project)
DkMLBumpVersionParticipant_GitAddAndCommit()