Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Fix documentation version #7694

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,15 @@ LOWDOWN := lowdown
endif

# For versions in documentation, we don't change with every git version, to
# save build time. We simply to pre-XXX and XXX.
# save build time. We build them on new tags or keep them on pre-next-release version.
doc/.doc_version: version_gen.h
@if [ "$(VERSION)" = "$(CLN_NEXT_VERSION)" ]; then DOC_VERSION="$(VERSION)"; else DOC_VERSION="pre-$(CLN_NEXT_VERSION)"; fi; echo $$DOC_VERSION > $@.new
@case "$(VERSION)" in \
*-*-g*) \
DOC_VERSION="pre-$(CLN_NEXT_VERSION)";; \
*) \
DOC_VERSION="$(VERSION)";; \
esac; \
echo $$DOC_VERSION > $@.new
@if cmp $@.new $@ >/dev/null 2>&1; then rm -f $@.new; else mv $@.new $@; $(ECHO) Documentation version updated to `cat doc/.doc_version`; fi

$(MANPAGES): doc/%: doc/%.md tools/md2man.sh doc/.doc_version
Expand Down
Loading