Blame SOURCES/doxygen-1.7.5-timestamp.patch

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