Blame SOURCES/doxygen-1.7.5-timestamp.patch

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