Update version in dox

We should automate this, but for now we can at least update:

    make -f dev.makefile update-version
    make -f dev.makefile dox
    # Then, go to jsoncpp-doc repo, add, and push.

* https://github.com/open-source-parsers/jsoncpp-docs/issues/2
This commit is contained in:
Christopher Dunn 2021-01-10 00:17:35 -06:00
parent be4a512887
commit 5c4219b8ae
3 changed files with 11 additions and 1 deletions

3
.gitignore vendored
View File

@ -52,3 +52,6 @@ compile_commands.json
# DS_Store # DS_Store
.DS_Store .DS_Store
# temps
/version

View File

@ -1,9 +1,11 @@
# This is only for jsoncpp developers/contributors. # This is only for jsoncpp developers/contributors.
# We use this to sign releases, generate documentation, etc. # We use this to sign releases, generate documentation, etc.
VER?=$(shell cat version.txt) VER?=$(shell cat version)
default: default:
@echo "VER=${VER}" @echo "VER=${VER}"
update-version:
perl get_version.pl meson.build >| version
sign: jsoncpp-${VER}.tar.gz sign: jsoncpp-${VER}.tar.gz
gpg --armor --detach-sign $< gpg --armor --detach-sign $<
gpg --verify $<.asc gpg --verify $<.asc

5
get_version.pl Normal file
View File

@ -0,0 +1,5 @@
while (<>) {
if (/version : '(.+)',/) {
print "$1";
}
}