From: Wolfgang Bangerth Date: Tue, 2 Oct 2018 17:35:29 +0000 (-0600) Subject: Propagate the last year of changes into the documentation. X-Git-Tag: v9.1.0-rc1~664^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dbb92fcfb828f852eac6055ddf9588355fd53f1;p=dealii.git Propagate the last year of changes into the documentation. --- diff --git a/doc/doxygen/CMakeLists.txt b/doc/doxygen/CMakeLists.txt index 432a0340d0..e5b780918e 100644 --- a/doc/doxygen/CMakeLists.txt +++ b/doc/doxygen/CMakeLists.txt @@ -108,17 +108,6 @@ CONFIGURE_FILE( ${CMAKE_CURRENT_BINARY_DIR}/options.dox ) -CONFIGURE_FILE( - ${CMAKE_CURRENT_SOURCE_DIR}/scripts/mod_header.pl.in - ${CMAKE_CURRENT_BINARY_DIR}/scripts/mod_header.pl - ) - -CONFIGURE_FILE( - ${CMAKE_CURRENT_SOURCE_DIR}/scripts/mod_footer.pl.in - ${CMAKE_CURRENT_BINARY_DIR}/scripts/mod_footer.pl - ) - - # Figure out the last copyright date of any of the deal.II source # files. We will use this then to set the copyright date of the # doxygen-generated HTML files. @@ -136,9 +125,22 @@ FOREACH (_source ${_source_files}) SET (_last_year "${_year}") ENDIF() ENDFOREACH() +SET(DEAL_II_PACKAGE_YEAR ${_last_year}) MESSAGE(STATUS "doxygen output will have copyright date ${_last_year}") +# Put the copyright year into the correct files +CONFIGURE_FILE( + ${CMAKE_CURRENT_SOURCE_DIR}/scripts/mod_header.pl.in + ${CMAKE_CURRENT_BINARY_DIR}/scripts/mod_header.pl + ) + +CONFIGURE_FILE( + ${CMAKE_CURRENT_SOURCE_DIR}/scripts/mod_footer.pl.in + ${CMAKE_CURRENT_BINARY_DIR}/scripts/mod_footer.pl + ) + + # # Generate header, footer and style files for doxygen. # diff --git a/doc/doxygen/scripts/mod_header.pl.in b/doc/doxygen/scripts/mod_header.pl.in index 6ee68ba283..5e7e523f83 100644 --- a/doc/doxygen/scripts/mod_header.pl.in +++ b/doc/doxygen/scripts/mod_header.pl.in @@ -19,16 +19,12 @@ # -# Modify these to enter the current data automatically -my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime; -$year += 1900; - if (m'') { print '', "\n"; print '', "\n"; print '', "\n"; - print '', "\n"; + print '', "\n"; print '', "\n"; # This script is run with ${perl} -pi, so it outputs every line we don't