From: Antoine Musso Date: Sat, 21 Apr 2007 20:06:52 +0000 (+0000) Subject: Show the current version number in doxygen documentation X-Git-Tag: 1.31.0-rc.0~53300 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=e7ffadf065917b64e980ab9bbf2b5a7b3f0f6e68;p=lhc%2Fweb%2Fwiklou.git Show the current version number in doxygen documentation --- diff --git a/maintenance/Makefile b/maintenance/Makefile index 5afb925888..e84cfdf363 100644 --- a/maintenance/Makefile +++ b/maintenance/Makefile @@ -1,8 +1,9 @@ -.PHONY: help test test-light +mediawiki_version := $(shell php -r "include('commandLine.inc'); print SpecialVersion::getVersion();") + help: - # Run 'make test' to run the parser tests. - # Run 'make doc' to run the phpdoc generation. - # Run 'make doxydoc' (unsupported doxygen generation). + @echo "Run 'make test' to run the parser tests." + @echo "Run 'make doc' to run the phpdoc generation." + @echo "Run 'make doxydoc' (unsupported doxygen generation)." test: php parserTests.php --quiet @@ -12,6 +13,5 @@ doc: echo 'Doc generation done. Look at ./docs/html/' doxydoc: - cd .. && doxygen maintenance/mwdoxygen.cfg + cd .. && /bin/sed -e "s/MW_VERSION_PLACEHOLDER/$(mediawiki_version)/" maintenance/mwdoxygen.cfg | doxygen - echo 'Doc generation done. Look at ./docs/html/' - diff --git a/maintenance/mwdoxygen.cfg b/maintenance/mwdoxygen.cfg index 39fae228d7..cec84da1b9 100644 --- a/maintenance/mwdoxygen.cfg +++ b/maintenance/mwdoxygen.cfg @@ -24,7 +24,7 @@ #--------------------------------------------------------------------------- PROJECT_NAME = MediaWiki -PROJECT_NUMBER = 1.6-cvs +PROJECT_NUMBER = MW_VERSION_PLACEHOLDER OUTPUT_DIRECTORY = docs # 2 levels directories, create 4096 of them!