]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Figure out the last copyright date for any of our source files. 7257/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 2 Oct 2018 16:19:18 +0000 (10:19 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 2 Oct 2018 16:19:18 +0000 (10:19 -0600)
doc/doxygen/CMakeLists.txt

index 50a1d3b7d0bf3439c84f96b98a9af4d83ffae2ea..84fec5cfc626e05602a3437faa20ae29efea8b3f 100644 (file)
@@ -119,6 +119,26 @@ CONFIGURE_FILE(
   )
 
 
+# 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 "1997")
+FILE(GLOB _source_files
+     "${CMAKE_SOURCE_DIR}/source/*/*.cc" 
+     "${CMAKE_SOURCE_DIR}/include/deal.II/*/*.h" 
+     "${CMAKE_SOURCE_DIR}/examples/*/*.cc")
+FOREACH (_source ${_source_files})
+  FILE(READ "${_source}" contents)
+  STRING(REGEX MATCH "Copyright .C. +([0-9]+ - )?([0-9]+)" _copyright ${contents})
+  STRING(REGEX MATCH "[0-9]+\$" _year ${_copyright})
+
+  IF (_year GREATER _last_year)
+    SET (_last_year "${_year}")
+  ENDIF()
+ENDFOREACH()
+MESSAGE(STATUS "doxygen output will have copyright date ${_last_year}")
+
+
 #
 # Generate header, footer and style files for doxygen.
 #

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.