Blame SOURCES/doxygen-1.7.5-timestamp.patch

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