Skip to content

Commit 5c4219b

Browse files
committed
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. * open-source-parsers/jsoncpp-docs#2
1 parent be4a512 commit 5c4219b

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,6 @@ compile_commands.json
5252

5353
# DS_Store
5454
.DS_Store
55+
56+
# temps
57+
/version

dev.makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# This is only for jsoncpp developers/contributors.
22
# We use this to sign releases, generate documentation, etc.
3-
VER?=$(shell cat version.txt)
3+
VER?=$(shell cat version)
44

55
default:
66
@echo "VER=${VER}"
7+
update-version:
8+
perl get_version.pl meson.build >| version
79
sign: jsoncpp-${VER}.tar.gz
810
gpg --armor --detach-sign $<
911
gpg --verify $<.asc

get_version.pl

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
while (<>) {
2+
if (/version : '(.+)',/) {
3+
print "$1";
4+
}
5+
}

0 commit comments

Comments
 (0)