From: Wolfgang Bangerth Date: Wed, 6 Jan 2016 14:29:58 +0000 (-0600) Subject: Skip header lines only for tutorial programs. X-Git-Tag: v8.4.0-rc2~110^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59e5b8638ed0204357c6149c0f70a7a91c5ffcd4;p=dealii.git Skip header lines only for tutorial programs. This leaves copyright notices and author information visible for code gallery programs. --- 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;