]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Skip header lines only for tutorial programs.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 6 Jan 2016 14:29:58 +0000 (08:29 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 6 Jan 2016 14:29:58 +0000 (08:29 -0600)
This leaves copyright notices and author information visible for
code gallery programs.

doc/doxygen/scripts/program2doxygen

index c98b8ab82ea7486ecf3a91eb587c56c6bbd493f9..4e4be2712989d962fec8ab32b3de84e86f78be6e 100644 (file)
 ## ---------------------------------------------------------------------
 
 
-# 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;

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.