From: g0dil Date: Thu, 25 Jan 2007 11:06:35 +0000 (+0000) Subject: Introduce automatic version stamping in the documentation X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=dc931709c705b2966e45b7edc7c85a313aeb63d6;p=senf.git Introduce automatic version stamping in the documentation git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@184 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Doxyfile b/Doxyfile index 57cdd8d..59fb6de 100644 --- a/Doxyfile +++ b/Doxyfile @@ -1,5 +1,5 @@ PROJECT_NAME = Overview -PROJECT_NUMBER = +PROJECT_NUMBER = "(Revision $(REVISION), generated $(TODAY))" OUTPUT_DIRECTORY = doc INPUT = . diff --git a/Packets/Doxyfile b/Packets/Doxyfile index ccebd76..95d25b4 100644 --- a/Packets/Doxyfile +++ b/Packets/Doxyfile @@ -1,6 +1,5 @@ @INCLUDE = ../doclib/Doxyfile.global PROJECT_NAME = libPackets -PROJECT_NUMBER = "Version 0.0.1" TAGFILES = ../Utils/doc/Utils.tag GENERATE_TAGFILE = doc/Packets.tag \ No newline at end of file diff --git a/SConstruct b/SConstruct index ca3fad0..2bd5c45 100644 --- a/SConstruct +++ b/SConstruct @@ -16,6 +16,19 @@ env.Append( DOXY_XREF_TYPES = [ 'bug', 'fixme', 'todo', 'idea' ], ) +import datetime + +svninfo = dict( + [ tuple(map(lambda y:y.strip(),x.split(":",1))) + for x in os.popen("svn info").read().split("\n") + if ':' in x ] ) +svninfo['commited'] = not(os.popen("svn status").read()) + +env.Append( + ENV = { 'TODAY' : datetime.date.today(), + 'REVISION' : svninfo['Revision'] + (not(svninfo['commited']) and " + local changes" or "") } +) + Export('env') SConscript(glob.glob("*/SConscript")) diff --git a/Scheduler/Doxyfile b/Scheduler/Doxyfile index d746d23..157f808 100644 --- a/Scheduler/Doxyfile +++ b/Scheduler/Doxyfile @@ -1,6 +1,5 @@ @INCLUDE = ../doclib/Doxyfile.global PROJECT_NAME = libScheduler -PROJECT_NUMBER = "Version 0.0.1" TAGFILES = ../Utils/doc/Utils.tag GENERATE_TAGFILE = doc/Scheduler.tag diff --git a/Socket/Doxyfile b/Socket/Doxyfile index 93f192f..1a5a548 100644 --- a/Socket/Doxyfile +++ b/Socket/Doxyfile @@ -1,7 +1,6 @@ @INCLUDE = ../doclib/Doxyfile.global PROJECT_NAME = libSocket -PROJECT_NUMBER = "Version 0.0.1" TAGFILES = ../Utils/doc/Utils.tag GENERATE_TAGFILE = doc/Socket.tag diff --git a/Utils/Doxyfile b/Utils/Doxyfile index 50ae9a9..414df50 100644 --- a/Utils/Doxyfile +++ b/Utils/Doxyfile @@ -1,5 +1,4 @@ @INCLUDE = ../doclib/Doxyfile.global PROJECT_NAME = libUtils -PROJECT_NUMBER = "Version 0.0.1" GENERATE_TAGFILE = doc/Utils.tag diff --git a/doclib/doxy-footer.html b/doclib/doxy-footer.html index 30cccfb..dd3d9bc 100644 --- a/doclib/doxy-footer.html +++ b/doclib/doxy-footer.html @@ -4,7 +4,7 @@