Blame SOURCES/doxygen-1.7.5-timestamp.patch

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