summaryrefslogtreecommitdiffstats
path: root/usr.bin/sgmlfmt
diff options
context:
space:
mode:
authorjfieber <jfieber@FreeBSD.org>1995-08-25 23:26:49 +0000
committerjfieber <jfieber@FreeBSD.org>1995-08-25 23:26:49 +0000
commit8390fd193ad72f5f95af0fecc00dae030e050621 (patch)
treec19503bcf93b82b94f5c90ec84a59050c6ae8e8f /usr.bin/sgmlfmt
parenta83b802bada404e3b2eccf92c3499966deaad171 (diff)
downloadFreeBSD-src-8390fd193ad72f5f95af0fecc00dae030e050621.zip
FreeBSD-src-8390fd193ad72f5f95af0fecc00dae030e050621.tar.gz
Make the -ascii option generate filename.ascii rather than filename.txt
Diffstat (limited to 'usr.bin/sgmlfmt')
-rw-r--r--usr.bin/sgmlfmt/sgmlfmt.12
-rwxr-xr-xusr.bin/sgmlfmt/sgmlfmt.pl10
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/sgmlfmt/sgmlfmt.1 b/usr.bin/sgmlfmt/sgmlfmt.1
index 1a3277e..51b661da 100644
--- a/usr.bin/sgmlfmt/sgmlfmt.1
+++ b/usr.bin/sgmlfmt/sgmlfmt.1
@@ -47,7 +47,7 @@ file
must be accessible to LaTeX for correct processing.
.It Fl ascii
Generates a single output file with the extension
-.Pa .txt
+.Pa .ascii
suitable for viewing on an ASCII terminal.
.It Fl nroff
Generates a single output file with the extension
diff --git a/usr.bin/sgmlfmt/sgmlfmt.pl b/usr.bin/sgmlfmt/sgmlfmt.pl
index 97bd444..449eb63 100755
--- a/usr.bin/sgmlfmt/sgmlfmt.pl
+++ b/usr.bin/sgmlfmt/sgmlfmt.pl
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $Id: sgmlfmt.pl,v 1.2 1995/05/18 03:01:28 jfieber Exp $
+# $Id: sgmlfmt.pl,v 1.3 1995/06/30 15:19:12 jfieber Exp $
# Format an sgml document tagged according to the linuxdoc DTD.
# by John Fieber <jfieber@freebsd.org> for the FreeBSD documentation
@@ -10,10 +10,10 @@
# -format outputfile format
# -------------------------------------------------------------
# -html inputfile.html HTML
-# -txt | -ascii inputfile.txt ascii text
+# -txt | -ascii inputfile.ascii ascii text
# -tex | -latex inputfile.tex LaTeX
# -nroff inputfile.nroff groff for ms macros
-# -ps inputfile.txt postscript
+# -ps inputfile.ps postscript
#
# -links For each <label id="foo">, make a symbolic
# link foo.html -> inputfile-n.html.
@@ -133,7 +133,7 @@ sub gen_nroff {
sub gen_ascii {
&sgmlparse(infile, "nroff");
- open(outfile, "| groff -T ascii -t -ms | col -b > $fileroot.txt");
+ open(outfile, "| groff -T ascii -t -ms | col -b > $fileroot.ascii");
while (<infile>) {
print outfile;
}
@@ -612,7 +612,7 @@ for ($i = 0; $i < $fcount; $i++) {
if ($gen{'nroff'}) {
print "generating $fileroot.nroff...\n"; &gen_nroff(); }
if ($gen{'txt'} || $gen{'ascii'}) {
- print "generating $fileroot.txt...\n"; &gen_ascii(); }
+ print "generating $fileroot.ascii...\n"; &gen_ascii(); }
if ($gen{'ps'}) {
print "generating $fileroot.ps...\n"; &gen_ps(); }
}
OpenPOWER on IntegriCloud