From c6df77c1dea0535ae40e9757ebec66f26e26d975 Mon Sep 17 00:00:00 2001 From: Willow Liquorice Date: Fri, 26 Aug 2022 04:08:13 +0100 Subject: -DOC: GNUnet version number is now derived automatically from .version. --- doc/doxygen/Makefile.am | 2 ++ doc/doxygen/gnunet.doxy | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/doxygen/Makefile.am b/doc/doxygen/Makefile.am index 8e12db26b..52f124e33 100644 --- a/doc/doxygen/Makefile.am +++ b/doc/doxygen/Makefile.am @@ -6,9 +6,11 @@ all: "\tmake fast - fast mode without dependency graphs" full: gnunet.doxy + python -c "f=open('../../.version'); print(f'PROJECT_NUMBER = {f.read().split(\"-\")[0]}'); f.close()" > version.doxy doxygen $< fast: gnunet.doxy + python -c "f=open('../../.version'); print(f'PROJECT_NUMBER = {f.read().split(\"-\")[0]}'); f.close()" > version.doxy sed 's/\(HAVE_DOT.*=\).*/\1 NO/' $< | doxygen - clean: diff --git a/doc/doxygen/gnunet.doxy b/doc/doxygen/gnunet.doxy index da777b55c..bfde393ae 100644 --- a/doc/doxygen/gnunet.doxy +++ b/doc/doxygen/gnunet.doxy @@ -38,7 +38,8 @@ PROJECT_NAME = GNUnet # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 0.16.x +# PROJECT_NUMBER = 0.16.x +@INCLUDE = "version.doxy" # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a -- cgit v1.2.3