From 3ab325e103e2726d7368396cb4a9a7ff62a21d17 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 3 Apr 1998 15:41:30 +0000 Subject: Added -header and -dirfile options. --- doc/tools/texi2www/texi2www | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/doc/tools/texi2www/texi2www b/doc/tools/texi2www/texi2www index 91c6cc14db..84dc9924f8 100755 --- a/doc/tools/texi2www/texi2www +++ b/doc/tools/texi2www/texi2www @@ -19,11 +19,15 @@ $usage = <\n"); &printHTML("\n"); + &print_header if $header; &printHTML("\n$this\n"); &printHTML("\n") if $next; &printHTML("\n") if $prev; @@ -906,6 +913,20 @@ sub printHTML } } # printHTML +######################################################################## +sub print_header +{ + unless (open(HEADER,$header)) { + print "WARNING -- couldn't open header file \"$header\" -- $!\n"; + $header = 0; + return; + } + while (
) { + &printHTML($_); + } + close(HEADER); +} + ######################################################################## sub print_footer { -- cgit v1.2.3