@@ -258,6 +258,7 @@ our $date = get_date_string();
258258
259259our @info_filenames ; # List of .info files to use as data source
260260our $header_title ; # Title at top of HTML report page (above table)
261+ our $footer ; # String at bottom of HTML report page
261262our $test_title ; # Title shown in header table of each page
262263our $output_directory ; # Name of directory in which to store output
263264our $base_filename ; # Optional name of file containing baseline data
@@ -356,6 +357,7 @@ if ($config || %opt_rc)
356357 apply_config({
357358 " genhtml_css_file" => \$css_filename ,
358359 " genhtml_header" => \$header_title ,
360+ " genhtml_footer" => \$footer ,
359361 " genhtml_hi_limit" => \$hi_limit ,
360362 " genhtml_med_limit" => \$med_limit ,
361363 " genhtml_line_field_width" => \$line_field_width ,
@@ -404,6 +406,7 @@ $br_coverage = $lcov_branch_coverage if (!defined($br_coverage));
404406# Parse command line options
405407if (!GetOptions(" output-directory|o=s" => \$output_directory ,
406408 " header-title=s" => \$header_title ,
409+ " footer=s" => \$footer ,
407410 " title|t=s" => \$test_title ,
408411 " description-file|d=s" => \$desc_filename ,
409412 " keep-descriptions|k" => \$keep_descriptions ,
@@ -632,6 +635,7 @@ HTML output:
632635 -t, --title TITLE Show TITLE in header table of each page
633636 -c, --css-file CSSFILE Use external style sheet file CSSFILE
634637 --header-title BANNER Banner text at top of each HTML page
638+ --footer FOOTER Footer text at bottom of each HTML page
635639 --no-source Do not create source code view
636640 --num-spaces NUM Replace tabs with NUM spaces in source view
637641 --highlight Highlight lines with converted-only data
@@ -4415,13 +4419,14 @@ sub write_html_epilog(*$;$)
44154419 {
44164420 $break_code = " target=\" _parent\" " ;
44174421 }
4422+ my $f = defined ($main::footer ) ? $footer : " Generated by: <a href=\" $lcov_url \" $break_code >$lcov_version </a>" ;
44184423
44194424 # *************************************************************
44204425
44214426 write_html($_ [0], <<END_OF_HTML )
44224427 <table width="100%" border=0 cellspacing=0 cellpadding=0>
44234428 <tr><td class="ruler"><img src="$_ [1]glass.png" width=3 height=3 alt=""></td></tr>
4424- <tr><td class="versionInfo">Generated by: <a href=" $lcov_url " $break_code > $lcov_version </a> </td></tr>
4429+ <tr><td class="versionInfo">$f </td></tr>
44254430 </table>
44264431 <br>
44274432END_OF_HTML
0 commit comments