]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Propagate the last year of changes into the documentation.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 2 Oct 2018 17:35:29 +0000 (11:35 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 3 Oct 2018 15:57:13 +0000 (09:57 -0600)
doc/doxygen/CMakeLists.txt
doc/doxygen/scripts/mod_header.pl.in

index 432a0340d0d22415735fe54260738ba0c5234be6..e5b780918e79e0425f68bae3dfe02cdb7cf82df8 100644 (file)
@@ -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.
 #
index 6ee68ba2836eafdbdf12c15c3ccc4a707c1d3608..5e7e523f832f4c831c7627bcc85e0749dbbfbf32 100644 (file)
 #
 
 
-# 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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.