Blame SOURCES/doxygen-1.7.5-timestamp.patch

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