Blame SOURCES/doxygen-1.7.5-timestamp.patch

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