Blame SOURCES/doxygen-1.7.5-timestamp.patch

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