Blame doxygen-1.7.3-timestamp.patch

Than Ngo fb13cd
--- doxygen-1.7.3.ORIG/src/configoptions.cpp	2011-01-14 22:32:45.571915149 +0100
Than Ngo fb13cd
+++ doxygen-1.7.3.ORIG/src/configoptions.cpp	2011-01-14 22:36:27.083723068 +0100
Than Ngo fb13cd
@@ -1128,6 +1128,14 @@ 
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 fb13cd
--- doxygen-1.7.3.ORIG/src/config.xml	2011-01-14 22:32:45.465909531 +0100
Than Ngo fb13cd
+++ doxygen-1.7.3.ORIG/src/config.xml	2011-01-14 22:38:07.124095918 +0100
Than Ngo fb13cd
@@ -789,6 +789,11 @@ 
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 fb13cd
+
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 fb13cd
--- doxygen-1.7.3.ORIG/src/htmlgen.cpp	2011-01-14 22:32:45.474910008 +0100
Than Ngo fb13cd
+++ doxygen-1.7.3.ORIG/src/htmlgen.cpp	2011-01-14 22:40:18.025120209 +0100
Than Ngo fb13cd
@@ -61,7 +61,7 @@ 
Than Ngo ceaa53
 
Than Ngo ceaa53
 static QCString g_header;
Than Ngo ceaa53
 static QCString g_footer;
Than Ngo fb13cd
-
Than Ngo ceaa53
+static bool timestamp=false;
Than Ngo ceaa53
 //------------------------- Pictures for the Tabs ------------------------
Than Ngo ceaa53
 
Than Ngo fb13cd
 // active
Than Ngo fb13cd
@@ -854,6 +854,8 @@ 
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 fb13cd
@@ -1208,7 +1210,7 @@ 
Than Ngo fb13cd
   if (timeStamp)
Than Ngo fb13cd
   {
Than Ngo fb13cd
     result += theTranslator->trGeneratedAt(
Than Ngo fb13cd
-               dateToString(TRUE),
Than Ngo fb13cd
+               dateToString(timestamp),
Than Ngo fb13cd
                Config_getString("PROJECT_NAME")
Than Ngo fb13cd
               );
Than Ngo fb13cd
   }