Show the current version number in doxygen documentation
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 21 Apr 2007 20:06:52 +0000 (20:06 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 21 Apr 2007 20:06:52 +0000 (20:06 +0000)
maintenance/Makefile
maintenance/mwdoxygen.cfg

index 5afb925..e84cfdf 100644 (file)
@@ -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/'
-
index 39fae22..cec84da 100644 (file)
@@ -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!