Blame SOURCES/doxygen-1.7.5-timestamp.patch

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