Blame SOURCES/doxygen-1.7.5-timestamp.patch

e88ed2
diff -up doxygen-1.7.5/src/configoptions.cpp.timestamp doxygen-1.7.5/src/configoptions.cpp
e88ed2
--- doxygen-1.7.5/src/configoptions.cpp.timestamp	2011-08-03 15:54:50.000000000 +0200
e88ed2
+++ doxygen-1.7.5/src/configoptions.cpp	2011-08-23 12:55:56.000000000 +0200
e88ed2
@@ -1173,6 +1173,14 @@ void addConfigOptions(Config *cfg)
e88ed2
   cs->setWidgetType(ConfigString::File);
e88ed2
   cs->addDependency("GENERATE_HTML");
e88ed2
   //----
e88ed2
+  cb = cfg->addBool(
e88ed2
+                 "HTML_TIMESTAMP",
e88ed2
+                 "If the HTML_TIMESTAMP tag is set to YES then the generated HTML\n"
e88ed2
+                 "documentation will contain the timesstamp.",
e88ed2
+                 FALSE
e88ed2
+                );
e88ed2
+  cb->addDependency("GENERATE_HTML");
e88ed2
+  //----
e88ed2
   cs = cfg->addString(
e88ed2
                  "HTML_STYLESHEET",
e88ed2
                  "The HTML_STYLESHEET tag can be used to specify a user-defined cascading\n"
e88ed2
diff -up doxygen-1.7.5/src/config.xml.timestamp doxygen-1.7.5/src/config.xml
e88ed2
--- doxygen-1.7.5/src/config.xml.timestamp	2011-08-03 15:54:48.000000000 +0200
e88ed2
+++ doxygen-1.7.5/src/config.xml	2011-08-23 12:55:56.000000000 +0200
e88ed2
@@ -819,6 +819,11 @@ The HTML_FOOTER tag can be used to speci
e88ed2
 each generated HTML page. If it is left blank doxygen will generate a 
e88ed2
 standard footer. 
e88ed2
 ' defval='' depends='GENERATE_HTML'/>
e88ed2
+    
e88ed2
+If the HTML_TIMESTAMP tag is set to YES then the generated HTML
e88ed2
+documentation will contain the timesstamp.
e88ed2
+' defval='' depends='GENERATE_HTML'/>
e88ed2
+
e88ed2
     
e88ed2
 The HTML_STYLESHEET tag can be used to specify a user-defined cascading 
e88ed2
 style sheet that is used by each HTML page. It can be used to 
e88ed2
diff -up doxygen-1.7.5/src/htmlgen.cpp.timestamp doxygen-1.7.5/src/htmlgen.cpp
e88ed2
--- doxygen-1.7.5/src/htmlgen.cpp.timestamp	2011-08-01 22:10:17.000000000 +0200
e88ed2
+++ doxygen-1.7.5/src/htmlgen.cpp	2011-08-23 13:01:16.000000000 +0200
e88ed2
@@ -88,7 +88,7 @@ static const char svgpan_script[]=
e88ed2
 
e88ed2
 static QCString g_header;
e88ed2
 static QCString g_footer;
e88ed2
-
e88ed2
+static bool timestamp=false;
e88ed2
 //------------------------- Pictures for the Tabs ------------------------
e88ed2
 
e88ed2
 // active
e88ed2
@@ -1072,6 +1072,8 @@ void HtmlGenerator::init()
e88ed2
   {
e88ed2
     g_footer = defaultHtmlFooter;
e88ed2
   }
e88ed2
+  if (Config_getBool("HTML_TIMESTAMP"))
e88ed2
+    timestamp=true;
e88ed2
   createSubDirs(d);
e88ed2
 
e88ed2
   QCString fileName=dname+"/tabs.css";
e88ed2
@@ -1285,7 +1287,7 @@ QCString HtmlGenerator::writeLogoAsStrin
e88ed2
   if (timeStamp)
e88ed2
   {
e88ed2
     result += theTranslator->trGeneratedAt(
e88ed2
-               dateToString(TRUE),
e88ed2
+               dateToString(timestamp),
e88ed2
                Config_getString("PROJECT_NAME")
e88ed2
               );
e88ed2
   }