${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.
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.
#
#
-# Modify these to enter the current data automatically
-my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;
-$year += 1900;
-
if (m'</head>')
{
print '<link rel="SHORTCUT ICON" href="deal.ico"></link>', "\n";
print '<script type="text/javascript" src="$relpath^custom.js"></script>', "\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="copyright" content="Copyright (C) 1998 - @DEAL_II_PACKAGE_YEAR@ by the deal.II authors"></meta>', "\n";
print '<meta name="deal.II-version" content="@DEAL_II_PACKAGE_VERSION@"></meta>', "\n";
# This script is run with ${perl} -pi, so it outputs every line we don't