shithub: aubio

Download patch

ref: a24a84ef787217ef02c81c99363f1c6aadb3f34b
parent: eff9f71f25581a5f5c171563e8749913d95cf79f
author: Paul Brossier <piem@piem.org>
date: Sun Mar 26 10:30:32 EDT 2017

wscript: pass version to doxygen

--- a/doc/web.cfg
+++ b/doc/web.cfg
@@ -38,7 +38,7 @@
 # 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
--- a/wscript
+++ b/wscript
@@ -441,7 +441,10 @@
 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')