From: kanschat Date: Wed, 27 Nov 2013 14:04:50 +0000 (+0000) Subject: automatically generate version info X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=372b6399974d3c538e972494fd30e6071612404b;p=dealii-svn.git automatically generate version info git-svn-id: https://svn.dealii.org/trunk@31810 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/doc/doxygen/CMakeLists.txt b/deal.II/doc/doxygen/CMakeLists.txt index 44a7ae3d42..d00c97b47d 100644 --- a/deal.II/doc/doxygen/CMakeLists.txt +++ b/deal.II/doc/doxygen/CMakeLists.txt @@ -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 ) # diff --git a/deal.II/doc/doxygen/options.dox.in b/deal.II/doc/doxygen/options.dox.in index 3f5c114cb9..9f691ebb7d 100644 --- a/deal.II/doc/doxygen/options.dox.in +++ b/deal.II/doc/doxygen/options.dox.in @@ -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 diff --git a/deal.II/doc/doxygen/scripts/mod_header.pl b/deal.II/doc/doxygen/scripts/mod_header.pl index d2d5a1da99..6007349ce1 100644 --- a/deal.II/doc/doxygen/scripts/mod_header.pl +++ b/deal.II/doc/doxygen/scripts/mod_header.pl @@ -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'') { @@ -10,7 +10,7 @@ if (m'') print '', "\n"; print '', "\n"; print '', "\n"; - print '', "\n"; + print '', "\n"; } s/\$projectname// unless (m//);