]> https://gitweb.dealii.org/ - dealii.git/commitdiff
doxygen: skip license header in step-xxb 9569/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 26 Feb 2020 15:54:46 +0000 (10:54 -0500)
committerTimo Heister <timo.heister@gmail.com>
Wed, 26 Feb 2020 15:55:18 +0000 (10:55 -0500)
We introduced tutorials like step-12b but we incorrectly print the
license header at the beginning of the "commented program". Filter those
out as well.

doc/doxygen/scripts/program2doxygen

index 5ec2cff91892839f8037aebe11bc1c9126fd4f28..e55a953a7b43a8f8f1e2b16cb1b0f6555fcb55fa 100644 (file)
 ## ---------------------------------------------------------------------
 
 
-# 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|cu]/)
+# Skip header lines at the top of the file, such as copyright notices and
+# license information, if the file is a step-xx.cc or .cu tutorial. Here, xx
+# is either a number like step-32 or a number plus a letter like step-12b.
+# Don't skip for other files such as code-gallery files
+if ($ARGV[0] =~ /step-\d+[a-z]?.[cc|cu]/)
 {
   $_ = <>;
   while ( m!^/\*!  ||  m!\s*\*! || m/^$/ ) {

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.