From 59e5b8638ed0204357c6149c0f70a7a91c5ffcd4 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 6 Jan 2016 08:29:58 -0600 Subject: [PATCH] Skip header lines only for tutorial programs. This leaves copyright notices and author information visible for code gallery programs. --- doc/doxygen/scripts/program2doxygen | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/doc/doxygen/scripts/program2doxygen b/doc/doxygen/scripts/program2doxygen index c98b8ab82e..4e4be27129 100644 --- a/doc/doxygen/scripts/program2doxygen +++ b/doc/doxygen/scripts/program2doxygen @@ -14,13 +14,18 @@ ## --------------------------------------------------------------------- -# ignore comments at the start of the program. this includes subversion -# tags and copyright notices. -$_ = <>; -while ( m!^/\*! || m!\s*\*! || m/^$/ ) { - $_ = <>; +# skip header lines at the top of the file, such as copyright notices +# and license information, if the file is a step-xx.cc tutorial. don't +# skip for other files such as code-gallery files +if ($ARGV[0] =~ /step-\d+.cc/) +{ + $_ = <>; + while ( m!^/\*! || m!\s*\*! || m/^$/ ) { + $_ = <>; + } } + # have three states, in which the program can be: # comment-mode, program-mode and skip-mode $comment_mode = 0; -- 2.39.5