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
#
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
)
#
# 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>')
{
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>/);