summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjfieber <jfieber@FreeBSD.org>1997-01-19 21:21:18 +0000
committerjfieber <jfieber@FreeBSD.org>1997-01-19 21:21:18 +0000
commit53fb34f6b959ed023e794047bf53ae691be2e949 (patch)
tree5a8da6749455de41d50a26d2ed1a9a6f2061828c /usr.bin
parent81b3c1218e3cd659cbd9560212e6f8f01f168288 (diff)
downloadFreeBSD-src-53fb34f6b959ed023e794047bf53ae691be2e949.zip
FreeBSD-src-53fb34f6b959ed023e794047bf53ae691be2e949.tar.gz
Make -hdr and -ftr options (to include arbitrary HTML at the
top and bottom of output) work with docbook.
Diffstat (limited to 'usr.bin')
-rwxr-xr-xusr.bin/sgmlfmt/sgmlfmt.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/sgmlfmt/sgmlfmt.pl b/usr.bin/sgmlfmt/sgmlfmt.pl
index de6b1f3..0df4e7a 100755
--- a/usr.bin/sgmlfmt/sgmlfmt.pl
+++ b/usr.bin/sgmlfmt/sgmlfmt.pl
@@ -112,7 +112,7 @@ sub sgmlparse {
$defines = "-i $defines";
}
open($ifhandle, "$sgmls $defines $decl $file | " .
- "$instant -Dfilename=$fileroot -t ${dtd}-${replacement}.ts |");
+ "$instant -Dfilename=$fileroot $instantopts -t ${dtd}-${replacement}.ts |");
}
#
@@ -696,6 +696,8 @@ sub main {
$dtd = "docbook";
$decl = "/usr/share/sgml/docbook/docbook.dcl";
if ($opt_f eq 'html') {
+ if ($opt_hdr) {$instantopts .= " -D \"inchdr=${opt_hdr}\"";}
+ if ($opt_ftr) {$instantopts .= " -D \"incftr=${opt_ftr}\"";}
&docbook_html();
}
else {
OpenPOWER on IntegriCloud