From a24a84ef787217ef02c81c99363f1c6aadb3f34b Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 26 Mar 2017 14:30:32 +0200 Subject: [PATCH] wscript: pass version to doxygen --- doc/web.cfg | 2 +- wscript | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/web.cfg b/doc/web.cfg index 0adeadd5..1a6614f2 100644 --- a/doc/web.cfg +++ b/doc/web.cfg @@ -38,7 +38,7 @@ PROJECT_NAME = aubio # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = "0.4.5~alpha" +PROJECT_NUMBER = "latest" # 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 diff --git a/wscript b/wscript index c9734573..a8529e10 100644 --- a/wscript +++ b/wscript @@ -441,7 +441,10 @@ def txt2man(bld): def doxygen(bld): # build documentation from source files using doxygen if bld.env['DOXYGEN']: - bld( name = 'doxygen', rule = 'doxygen ${SRC} > /dev/null', + bld.env.VERSION = VERSION + rule = '( cat ${SRC} && echo PROJECT_NUMBER=${VERSION}; )' + rule += ' | doxygen - > /dev/null' + bld( name = 'doxygen', rule = rule, source = 'doc/web.cfg', target = '../doc/web/html/index.html', cwd = 'doc') -- 2.11.0