Blame doxygen-1.7.5-timestamp.patch

Than Ngo 21d367
diff -up doxygen-1.7.5/src/configoptions.cpp.timestamp doxygen-1.7.5/src/configoptions.cpp
Than Ngo 21d367
--- doxygen-1.7.5/src/configoptions.cpp.timestamp	2011-08-03 15:54:50.000000000 +0200
Than Ngo 21d367
+++ doxygen-1.7.5/src/configoptions.cpp	2011-08-23 12:55:56.000000000 +0200
Than Ngo 21d367
@@ -1173,6 +1173,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 21d367
diff -up doxygen-1.7.5/src/config.xml.timestamp doxygen-1.7.5/src/config.xml
Than Ngo 21d367
--- doxygen-1.7.5/src/config.xml.timestamp	2011-08-03 15:54:48.000000000 +0200
Than Ngo 21d367
+++ doxygen-1.7.5/src/config.xml	2011-08-23 12:55:56.000000000 +0200
Than Ngo 21d367
@@ -819,6 +819,11 @@ 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 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 21d367
diff -up doxygen-1.7.5/src/htmlgen.cpp.timestamp doxygen-1.7.5/src/htmlgen.cpp
Than Ngo 21d367
--- doxygen-1.7.5/src/htmlgen.cpp.timestamp	2011-08-01 22:10:17.000000000 +0200
Than Ngo 21d367
+++ doxygen-1.7.5/src/htmlgen.cpp	2011-08-23 13:01:16.000000000 +0200
Than Ngo 21d367
@@ -88,7 +88,7 @@ static const char svgpan_script[]=
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 21d367
@@ -1072,6 +1072,8 @@ void HtmlGenerator::init()
Than Ngo ceaa53
   {
Than Ngo 21d367
     g_footer = defaultHtmlFooter;
Than Ngo ceaa53
   }
Than Ngo 21d367
+  if (Config_getBool("HTML_TIMESTAMP"))
Than Ngo 21d367
+    timestamp=true;
Than Ngo ceaa53
   createSubDirs(d);
Than Ngo 21d367
 
Than Ngo 21d367
   QCString fileName=dname+"/tabs.css";
Than Ngo 21d367
@@ -1285,7 +1287,7 @@ QCString HtmlGenerator::writeLogoAsStrin
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
   }