From 2f869ac4cd4548b9dfe6526340413e01b216771b Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Wed, 26 Feb 2020 10:54:46 -0500 Subject: [PATCH] doxygen: skip license header in step-xxb 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 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/doxygen/scripts/program2doxygen b/doc/doxygen/scripts/program2doxygen index 5ec2cff918..e55a953a7b 100644 --- a/doc/doxygen/scripts/program2doxygen +++ b/doc/doxygen/scripts/program2doxygen @@ -14,10 +14,11 @@ ## --------------------------------------------------------------------- -# 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/^$/ ) { -- 2.39.5