## HTML output
# Copyright (C) 1993-1995 Ian Jackson.
# Modified by John Bowman 02Sep06: simply docref usage
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# It is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with GNU Emacs; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
# (Note: I do not consider works produced using these BFNN processing
# tools to be derivative works of the tools, so they are NOT covered
# by the GPL. However, I would appreciate it if you credited me if
# appropriate in any documents you format using BFNN.)
use POSIX;
%saniarray= ('<','lt', '>','gt', '&','amp', '"','quot');
sub html_init {
$html_prefix = './'.$prefix;
$html_prefix =~ s:^\.//:/:;
system('rm','-r',"$html_prefix.html");
system('mkdir',"$html_prefix.html");
open(HTML,">$html_prefix.html/index.html");
print HTML "\n";
print HTML "\n";
$html_needpara= -1;
$html_end='';
my $epoch=$ENV{SOURCE_DATE_EPOCH} || time;
$html_date=POSIX::strftime("%Y-%m-%d", gmtime($epoch));
$html_year=POSIX::strftime("%Y", gmtime($epoch));
}
sub html_startup {
print HTML <
$user_title