From 8dbb92fcfb828f852eac6055ddf9588355fd53f1 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 2 Oct 2018 11:35:29 -0600 Subject: [PATCH] Propagate the last year of changes into the documentation. --- doc/doxygen/CMakeLists.txt | 24 +++++++++++++----------- doc/doxygen/scripts/mod_header.pl.in | 6 +----- 2 files changed, 14 insertions(+), 16 deletions(-) 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 -- 2.39.5