Skip to content

Commit

Permalink
Update version in dox
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cdunn2001 committed Jan 10, 2021
1 parent be4a512 commit 5c4219b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ compile_commands.json

# DS_Store
.DS_Store

# temps
/version
4 changes: 3 additions & 1 deletion dev.makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# This is only for jsoncpp developers/contributors.
# We use this to sign releases, generate documentation, etc.
VER?=$(shell cat version.txt)
VER?=$(shell cat version)

default:
@echo "VER=${VER}"
update-version:
perl get_version.pl meson.build >| version
sign: jsoncpp-${VER}.tar.gz
gpg --armor --detach-sign $<
gpg --verify $<.asc
Expand Down
5 changes: 5 additions & 0 deletions get_version.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
while (<>) {
if (/version : '(.+)',/) {
print "$1";
}
}

0 comments on commit 5c4219b

Please sign in to comment.