]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
automatically generate version info
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Nov 2013 14:04:50 +0000 (14:04 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Nov 2013 14:04:50 +0000 (14:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@31810 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/doxygen/CMakeLists.txt
deal.II/doc/doxygen/options.dox.in
deal.II/doc/doxygen/scripts/mod_header.pl

index 44a7ae3d42aa94f88fa75a516d9c3ecf0115771a..d00c97b47d6e5449c6caf35250fa1284ee07431f 100644 (file)
@@ -53,6 +53,17 @@ CONFIGURE_FILE(
   COPYONLY
   )
 
+CONFIGURE_FILE(
+  ${CMAKE_CURRENT_SOURCE_DIR}/scripts/mod_header.pl
+  ${CMAKE_CURRENT_BINARY_DIR}/scripts/mod_header.pl
+  )
+
+CONFIGURE_FILE(
+  ${CMAKE_CURRENT_SOURCE_DIR}/scripts/mod_footer.pl
+  ${CMAKE_CURRENT_BINARY_DIR}/scripts/mod_footer.pl
+  )
+
+
 #
 # Generate header, footer and style files for doxygen
 #
@@ -60,12 +71,12 @@ ADD_CUSTOM_COMMAND(
   OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/header.html
   ${CMAKE_CURRENT_BINARY_DIR}/footer.html
   COMMAND ${DOXYGEN_EXECUTABLE} -w html header.html footer.html style.css options.dox
-  COMMAND ${PERL_EXECUTABLE} -pi~ ${CMAKE_SOURCE_DIR}/doc/doxygen/scripts/mod_header.pl header.html
-  COMMAND ${PERL_EXECUTABLE} -pi~ ${CMAKE_SOURCE_DIR}/doc/doxygen/scripts/mod_footer.pl footer.html
+  COMMAND ${PERL_EXECUTABLE} -pi~ ${CMAKE_CURRENT_BINARY_DIR}/scripts/mod_header.pl header.html
+  COMMAND ${PERL_EXECUTABLE} -pi~ ${CMAKE_CURRENT_BINARY_DIR}/scripts/mod_footer.pl footer.html
   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
   DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/options.dox
-  ${CMAKE_SOURCE_DIR}/doc/doxygen/scripts/mod_header.pl
-  ${CMAKE_SOURCE_DIR}/doc/doxygen/scripts/mod_footer.pl
+  ${CMAKE_CURRENT_BINARY_DIR}/scripts/mod_header.pl
+  ${CMAKE_CURRENT_BINARY_DIR}/scripts/mod_footer.pl
   )
 
 #
index 3f5c114cb9a4a380fcd62c66b0542617234326a9..9f691ebb7d43414aa322e02b52351bfccc68043c 100644 (file)
@@ -123,7 +123,7 @@ LATEX_BATCHMODE        = YES
 
 GENERATE_RTF           = NO
 GENERATE_MAN           = NO
-GENERATE_XML           = NO
+GENERATE_XML           = YES
 GENERATE_AUTOGEN_DEF   = NO
 GENERATE_PERLMOD       = NO
 
index d2d5a1da9976552a927a6287c173c43df04070cc..6007349ce15cd482656ff650011128af0a77a7b7 100644 (file)
@@ -1,8 +1,8 @@
 
 
 # Modify these to enter the current data automatically
-my $year = 2013;
-my $version = "8.1.pre";
+my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;
+$year += 1900;
 
 if (m'</head>')
 {
@@ -10,7 +10,7 @@ if (m'</head>')
     print '<link rel="SHORTCUT ICON" href="http://www.dealii.org/deal.ico"></link>', "\n";
     print '<meta name="author" content="The deal.II Authors <authors@dealii.org>"></meta>', "\n";
     print '<meta name="copyright" content="Copyright (C) 1998 - ', $year, ' by the deal.II authors"></meta>', "\n";
-    print '<meta name="deal.II-version" content="', $version, '"></meta>', "\n";
+    print '<meta name="deal.II-version" content="@DEAL_II_PACKAGE_VERSION@"></meta>', "\n";
 }
 
 s/\$projectname// unless (m/<title>/);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.