Blame doxygen-1.6.0-timestamp.patch

Than Ngo ceaa53
diff -up doxygen-1.6.0/src/config.cpp.orig doxygen-1.6.0/src/config.cpp
Than Ngo ceaa53
diff -up doxygen-1.6.0/src/config.l.orig doxygen-1.6.0/src/config.l
Than Ngo ceaa53
diff -up doxygen-1.6.0/src/configoptions.cpp.orig doxygen-1.6.0/src/configoptions.cpp
Than Ngo ceaa53
--- doxygen-1.6.0/src/configoptions.cpp.orig	2009-08-24 12:04:45.000000000 +0200
Than Ngo ceaa53
+++ doxygen-1.6.0/src/configoptions.cpp	2009-08-24 12:06:34.000000000 +0200
Than Ngo ceaa53
@@ -1072,6 +1072,14 @@ void addConfigOptions(Config *cfg)
Than Ngo ceaa53
   cs->setWidgetType(ConfigString::File);
Than Ngo ceaa53
   cs->addDependency("GENERATE_HTML");
Than Ngo ceaa53
   //----
Than Ngo ceaa53
+  cb = cfg->addBool(
Than Ngo ceaa53
+                 "HTML_TIMESTAMP",
Than Ngo ceaa53
+                 "If the HTML_TIMESTAMP tag is set to YES then the generated HTML\n"
Than Ngo ceaa53
+                 "documentation will contain the timesstamp.",
Than Ngo ceaa53
+                 FALSE
Than Ngo ceaa53
+                );
Than Ngo ceaa53
+  cb->addDependency("GENERATE_HTML");
Than Ngo ceaa53
+  //----
Than Ngo ceaa53
   cs = cfg->addString(
Than Ngo ceaa53
                  "HTML_STYLESHEET",
Than Ngo ceaa53
                  "The HTML_STYLESHEET tag can be used to specify a user-defined cascading\n"
Than Ngo ceaa53
diff -up doxygen-1.6.0/src/config.xml.orig doxygen-1.6.0/src/config.xml
Than Ngo ceaa53
--- doxygen-1.6.0/src/config.xml.orig	2009-08-24 11:55:46.000000000 +0200
Than Ngo ceaa53
+++ doxygen-1.6.0/src/config.xml	2009-08-24 12:03:06.000000000 +0200
Than Ngo ceaa53
@@ -751,6 +751,10 @@ The HTML_FOOTER tag can be used to speci
Than Ngo ceaa53
 each generated HTML page. If it is left blank doxygen will generate a 
Than Ngo ceaa53
 standard footer. 
Than Ngo ceaa53
 ' defval='' depends='GENERATE_HTML'/>
Than Ngo ceaa53
+    
Than Ngo ceaa53
+If the HTML_TIMESTAMP tag is set to YES then the generated HTML
Than Ngo ceaa53
+documentation will contain the timesstamp.
Than Ngo ceaa53
+' defval='' depends='GENERATE_HTML'/>
Than Ngo ceaa53
     
Than Ngo ceaa53
 The HTML_STYLESHEET tag can be used to specify a user-defined cascading 
Than Ngo ceaa53
 style sheet that is used by each HTML page. It can be used to 
Than Ngo ceaa53
diff -up doxygen-1.6.0/src/htmlgen.cpp.orig doxygen-1.6.0/src/htmlgen.cpp
Than Ngo ceaa53
--- doxygen-1.6.0/src/htmlgen.cpp.orig	2009-08-24 11:55:20.000000000 +0200
Than Ngo ceaa53
+++ doxygen-1.6.0/src/htmlgen.cpp	2009-08-24 11:53:29.000000000 +0200
Than Ngo ceaa53
@@ -56,6 +56,7 @@ static const char search_script[]=
Than Ngo ceaa53
 
Than Ngo ceaa53
 static QCString g_header;
Than Ngo ceaa53
 static QCString g_footer;
Than Ngo ceaa53
+static bool timestamp=false;
Than Ngo ceaa53
 
Than Ngo ceaa53
 //------------------------- Pictures for the Tabs ------------------------
Than Ngo ceaa53
 
Than Ngo ceaa53
@@ -640,6 +641,8 @@ void HtmlGenerator::init()
Than Ngo ceaa53
   if (!Config_getString("HTML_FOOTER").isEmpty()) 
Than Ngo ceaa53
   {
Than Ngo ceaa53
     g_footer=fileToString(Config_getString("HTML_FOOTER"));
Than Ngo ceaa53
+    if (Config_getBool("HTML_TIMESTAMP"))
Than Ngo ceaa53
+      timestamp=true;
Than Ngo ceaa53
     //printf("g_footer='%s'\n",g_footer.data());
Than Ngo ceaa53
   }
Than Ngo ceaa53
   createSubDirs(d);
Than Ngo ceaa53
@@ -864,7 +867,7 @@ static void writePageFooter(QTextStream 
Than Ngo ceaa53
   {
Than Ngo ceaa53
     t << "
<address style=\"text-align: right;\"><small>";
Than Ngo ceaa53
     t << theTranslator->trGeneratedAt(
Than Ngo ceaa53
-        dateToString(TRUE),
Than Ngo ceaa53
+        dateToString(timestamp),
Than Ngo ceaa53
         Config_getString("PROJECT_NAME")
Than Ngo ceaa53
         );
Than Ngo ceaa53
     t << " " << endl << "";