Remove sgmlformat. Used in XFree86 times to format the docs, long
obsolete. ok matthieu@, kili@
This commit is contained in:
parent
73ff4c1080
commit
8a4969d25b
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.398 2013/12/01 23:17:09 bcallah Exp $
|
||||
# $OpenBSD: Makefile,v 1.399 2013/12/02 15:32:58 naddy Exp $
|
||||
|
||||
SUBDIR =
|
||||
SUBDIR += TclXML
|
||||
@ -371,7 +371,6 @@
|
||||
SUBDIR += ruby-yard
|
||||
SUBDIR += rxp
|
||||
SUBDIR += sablotron
|
||||
SUBDIR += sgmlformat
|
||||
SUBDIR += sim
|
||||
SUBDIR += source-highlight
|
||||
SUBDIR += sp
|
||||
|
@ -1,23 +0,0 @@
|
||||
# $OpenBSD: Makefile,v 1.22 2013/03/11 11:42:47 espie Exp $
|
||||
|
||||
COMMENT= generate groff/HTML from linuxdoc/docbook SGML documents
|
||||
|
||||
DISTNAME= sgmlformat-1.7
|
||||
REVISION = 1
|
||||
CATEGORIES= textproc print
|
||||
MASTER_SITES= http://fallout.campusview.indiana.edu/ports/distfiles/
|
||||
|
||||
MAINTAINER= Matthieu Herrb <matthieu@openbsd.org>
|
||||
|
||||
# License: BSD, badly worded
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
WANTLIB= c
|
||||
|
||||
USE_GROFF = Yes
|
||||
RUN_DEPENDS= textproc/openjade \
|
||||
textproc/linuxdoc \
|
||||
textproc/docbook
|
||||
|
||||
FAKE_FLAGS=PREFIX=${PREFIX}
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,5 +0,0 @@
|
||||
MD5 (sgmlformat-1.7.tar.gz) = oktv32wUwQ9zRLHz/gmlOg==
|
||||
RMD160 (sgmlformat-1.7.tar.gz) = e8jzrC7Eje04d7q6e8aL4kRZTtM=
|
||||
SHA1 (sgmlformat-1.7.tar.gz) = f3N+BTEwkzpeti6P2gzYnqwJjvE=
|
||||
SHA256 (sgmlformat-1.7.tar.gz) = M083GaHpk214nUUWq+MXz3/Sd5YlGTerpZhZZqZ3RkY=
|
||||
SIZE (sgmlformat-1.7.tar.gz) = 138371
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-instant_Makefile,v 1.1 2007/10/26 21:29:30 jasper Exp $
|
||||
--- instant/Makefile.orig Wed Jul 16 18:42:34 1997
|
||||
+++ instant/Makefile Fri Oct 26 23:26:36 2007
|
||||
@@ -8,7 +8,6 @@ SRCS+= sgmls.c
|
||||
CFLAGS+=-DTRANSPEC_DIR=\"${TRANSPEC_DIR}\"
|
||||
LDADD= -lcompat
|
||||
|
||||
-MAN1= instant.1
|
||||
-MAN5= transpec.5
|
||||
+MAN= instant.1 transpec.5
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-instant_traninit_c,v 1.1 2007/10/26 21:29:30 jasper Exp $
|
||||
--- instant/traninit.c.orig Wed Jul 16 18:44:12 1997
|
||||
+++ instant/traninit.c Fri Oct 26 23:26:37 2007
|
||||
@@ -129,7 +129,7 @@ ReadTransSpec(
|
||||
char buf[LINESIZE];
|
||||
char buf2[LINESIZE];
|
||||
char *command;
|
||||
- char *sgmls = "nsgmls -c " TRANSPEC_DIR "/catalog ";
|
||||
+ char *sgmls = "onsgmls -c " TRANSPEC_DIR "/catalog ";
|
||||
char maptype = '\0';
|
||||
|
||||
(void)sgmls_set_errhandler(input_error);
|
@ -1,26 +0,0 @@
|
||||
$OpenBSD: patch-sgmlfmt_Makefile,v 1.1 2007/10/26 21:29:30 jasper Exp $
|
||||
--- sgmlfmt/Makefile.orig Tue Sep 15 23:05:39 1998
|
||||
+++ sgmlfmt/Makefile Fri Oct 26 23:26:37 2007
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
FILES= sgmlfmt
|
||||
CLEANFILES= sgmlfmt
|
||||
-MAN1= sgmlfmt.1
|
||||
+MAN= sgmlfmt.1
|
||||
|
||||
all: sgmlfmt
|
||||
|
||||
sgmlfmt: sgmlfmt.pl
|
||||
-.if exists(/usr/bin/perl5)
|
||||
+.if exists(/usr/bin/perl)
|
||||
sed -e 's|##PERL##|/usr/bin/perl|' -e 's|##PREFIX##|${PREFIX}|' < sgmlfmt.pl > sgmlfmt
|
||||
.else
|
||||
sed -e 's|##PERL##|${PREFIX}/bin/perl|' -e 's|##PREFIX##|${PREFIX}|' < sgmlfmt.pl > sgmlfmt
|
||||
@@ -15,6 +15,6 @@ sgmlfmt: sgmlfmt.pl
|
||||
|
||||
afterinstall:
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${FILES} \
|
||||
- ${BINDIR}
|
||||
+ $(DESTDIR)${BINDIR}
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,10 +0,0 @@
|
||||
$OpenBSD: patch-sgmlfmt_sgmlfmt_1,v 1.1 2010/04/04 18:40:19 naddy Exp $
|
||||
--- sgmlfmt/sgmlfmt.1.orig Sun Apr 4 20:37:10 2010
|
||||
+++ sgmlfmt/sgmlfmt.1 Sun Apr 4 20:38:56 2010
|
||||
@@ -1,5 +1,6 @@
|
||||
.Dd January 17, 1997
|
||||
.Dt SGMLFMT 1
|
||||
+.Os
|
||||
.Sh NAME
|
||||
.Nm sgmlfmt
|
||||
.Nd Formats SGML files tagged according to the linuxdoc DTD.
|
@ -1,145 +0,0 @@
|
||||
$OpenBSD: patch-sgmlfmt_sgmlfmt_pl,v 1.2 2007/11/03 16:26:34 naddy Exp $
|
||||
--- sgmlfmt/sgmlfmt.pl.orig Tue Sep 15 23:05:47 1998
|
||||
+++ sgmlfmt/sgmlfmt.pl Sat Nov 3 17:22:00 2007
|
||||
@@ -26,6 +26,7 @@
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
|
||||
+# $XFree86: doctools/sgmlformat/sgmlfmt/sgmlfmt.pl,v 1.4 1998/04/12 03:13:03 dawes Exp $
|
||||
|
||||
# Format an sgml document tagged according to the linuxdoc DTD.
|
||||
# by John Fieber <jfieber@freebsd.org> for the FreeBSD documentation
|
||||
@@ -44,7 +45,7 @@ $sgmldir = "##PREFIX##/share/sgml";
|
||||
# The SGML parser, and translation engine.
|
||||
#
|
||||
|
||||
-$sgmls = "nsgmls";
|
||||
+$sgmls = "onsgmls";
|
||||
$instant = "instant";
|
||||
|
||||
#
|
||||
@@ -68,13 +69,25 @@ $SIG{'INT'} = 'sighandler';
|
||||
$SIG{'QUIT'} = 'sighandler';
|
||||
|
||||
#
|
||||
+# Check if a command we've run returned an error status. If so, remove
|
||||
+# scratch files and exit.
|
||||
+#
|
||||
+sub exitiferror {
|
||||
+ local($ret) = @_;
|
||||
+ if ($ret >> 8 != 0) {
|
||||
+ unlink @cleanfiles;
|
||||
+ exit($ret >> 8);
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+#
|
||||
# Display a usage message.
|
||||
#
|
||||
|
||||
sub usage {
|
||||
print "Usage:\n";
|
||||
print "sgmlfmt [-d <doctype>] -f <format> [-i <namea> ...] [-links]\n";
|
||||
- print " [-e encoding] [-hdr file] [-ftr file] file\n";
|
||||
+ print " [-e encoding] [-hdr file] [-ftr file] [-b] file\n";
|
||||
print "where <doctype> is one of: linuxdoc (default), docbook.\n";
|
||||
print "and <format> is one of: ascii, html, koi8-r, latin1, ps, roff\n";
|
||||
}
|
||||
@@ -119,6 +132,7 @@ sub sgmlparse {
|
||||
if ($defines ne "") {
|
||||
$defines = "-i $defines";
|
||||
}
|
||||
+
|
||||
open($ifhandle, "$sgmls $defines $decl $file | " .
|
||||
"sed -e 's/^f\<OSFILE\>/f/' | " .
|
||||
"$instant -Dfilename=$fileroot $instantopts " .
|
||||
@@ -138,6 +152,7 @@ sub gen_roff {
|
||||
}
|
||||
close(infile);
|
||||
close(outfile);
|
||||
+ &exitiferror($?);
|
||||
}
|
||||
|
||||
#
|
||||
@@ -155,16 +170,22 @@ sub do_groff {
|
||||
}
|
||||
close(infile);
|
||||
close(outfile);
|
||||
- system("groff -T ${driver} -t ${fileroot}.trf ${postproc} > ${fileroot}.${driver}");
|
||||
+ &exitiferror($?);
|
||||
+
|
||||
+ system("groff -T ${driver} -t -M ${sgmldir}/tmac ${fileroot}.trf" .
|
||||
+ " ${postproc} > ${fileroot}.${driver}");
|
||||
+ &exitiferror($?);
|
||||
|
||||
# If foo.tmp has been created, then there are cross references
|
||||
# in the file and we need a second pass to resolve them correctly.
|
||||
|
||||
if (stat("${fileroot}.tmp")) {
|
||||
- system("groff -T ${driver} -t ${fileroot}.trf ${postproc} > ${fileroot}.${driver}");
|
||||
+ system("groff -T ${driver} -t -M ${sgmldir}/tmac ${fileroot}.trf" .
|
||||
+ " ${postproc} > ${fileroot}.${driver}");
|
||||
unlink("${fileroot}.qrf");
|
||||
}
|
||||
unlink("${fileroot}.trf");
|
||||
+ &exitiferror($?);
|
||||
}
|
||||
|
||||
#
|
||||
@@ -303,6 +324,8 @@ sub gen_html {
|
||||
}
|
||||
}
|
||||
close(bar);
|
||||
+ close(foo);
|
||||
+ &exitiferror($?);
|
||||
|
||||
open(foofile, $tmpfile);
|
||||
&html2html(foofile, "boo");
|
||||
@@ -623,6 +646,7 @@ sub docbook_html {
|
||||
}
|
||||
close(infile);
|
||||
close(outfile);
|
||||
+ &exitiferror($?);
|
||||
}
|
||||
|
||||
# extlink
|
||||
@@ -655,7 +679,8 @@ sub extlink {
|
||||
|
||||
sub main {
|
||||
# Check arguments
|
||||
- if (!&NGetOpt('d=s', 'f=s', 'links', 'i:s@', 'hdr=s', 'ftr=s', 'e=s')) {
|
||||
+ if (!&NGetOpt('d=s', 'f=s', 'links', 'i:s@', 'hdr=s', 'ftr=s', 'e=s',
|
||||
+ 'b')) {
|
||||
&usage;
|
||||
exit 1;
|
||||
}
|
||||
@@ -681,6 +706,12 @@ sub main {
|
||||
$decl = "-c " . $sgmldir . "/linuxdoc/catalog";
|
||||
}
|
||||
|
||||
+ if ($opt_b) {
|
||||
+ $colcmd = "col -b";
|
||||
+ }
|
||||
+ else {
|
||||
+ $colcmd = "col";
|
||||
+ }
|
||||
# Generate the output
|
||||
if ($opt_f eq 'html') {
|
||||
# Set the character encoding
|
||||
@@ -705,13 +736,13 @@ sub main {
|
||||
&gen_roff();
|
||||
}
|
||||
elsif ($opt_f eq 'ascii') {
|
||||
- &do_groff("ascii", "| col");
|
||||
+ &do_groff("ascii", "| $colcmd");
|
||||
}
|
||||
elsif ($opt_f eq 'latin1') {
|
||||
- &do_groff("latin1", "| col");
|
||||
+ &do_groff("latin1", "| $colcmd");
|
||||
}
|
||||
elsif ($opt_f eq 'koi8-r') {
|
||||
- &do_groff("koi8-r", "| col");
|
||||
+ &do_groff("koi8-r", "| $colcmd");
|
||||
}
|
||||
elsif ($opt_f eq 'ps') {
|
||||
&do_groff("ps", "");
|
@ -1,16 +0,0 @@
|
||||
$OpenBSD: patch-transpec_Makefile,v 1.3 2007/11/03 16:26:34 naddy Exp $
|
||||
--- transpec/Makefile.orig Wed Aug 20 23:37:13 1997
|
||||
+++ transpec/Makefile Sat Nov 3 17:22:00 2007
|
||||
@@ -10,10 +10,10 @@ NOOBJ= noobj
|
||||
all clean cleandir depend lint tags:
|
||||
|
||||
beforeinstall:
|
||||
- @mkdir -p ${TRANSPEC_DIR}
|
||||
+ @mkdir -p ${DESTDIR}${TRANSPEC_DIR}
|
||||
|
||||
afterinstall:
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FILES} \
|
||||
- ${TRANSPEC_DIR}
|
||||
+ ${DESTDIR}${TRANSPEC_DIR}
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,19 +0,0 @@
|
||||
$OpenBSD: patch-transpec_html_sdata,v 1.1 2007/10/26 21:29:30 jasper Exp $
|
||||
--- transpec/html.sdata.orig Wed Jul 16 18:19:53 1997
|
||||
+++ transpec/html.sdata Fri Oct 26 23:26:36 2007
|
||||
@@ -80,13 +80,14 @@ Enhancement by John R Fieber, 1996
|
||||
<map from="[darr ]" to="&darr;">
|
||||
<map from="[copy ]" to="&copy;">
|
||||
<map from="[reg ]" to="&reg;">
|
||||
-<map from="[trade ]" to="&trade;">
|
||||
+<map from="[trade ]" to="[TM]">
|
||||
<map from="[brvbar]" to="&brvbar;">
|
||||
<map from="[not ]" to="&not;">
|
||||
<map from="[sung ]" to="&sung;">
|
||||
<map from="[excl ]" to="&excl;">
|
||||
<map from="[iexcl ]" to="&iexcl;">
|
||||
<map from="[quot ]" to="&quot;">
|
||||
+<map from="[dquot ]" to=""">
|
||||
<map from="[apos ]" to="'">
|
||||
<map from="[lpar ]" to="(">
|
||||
<map from="[rpar ]" to=")">
|
@ -1,25 +0,0 @@
|
||||
$OpenBSD: patch-transpec_linuxdoc-roff_ts,v 1.1 2007/10/26 21:29:30 jasper Exp $
|
||||
--- transpec/linuxdoc-roff.ts.orig Sat Jan 17 17:32:58 1998
|
||||
+++ transpec/linuxdoc-roff.ts Fri Oct 26 23:26:36 2007
|
||||
@@ -98,7 +98,7 @@
|
||||
. SA 0
|
||||
. ftr C R
|
||||
.\}
|
||||
-.PH "'${_followrel descendant TITLE &r.pass;}''%'"
|
||||
+.PH "'${_followrel descendant TITLE &r.pass;}
|
||||
.nr N 1 <!-- header at the bottom of the first page -->
|
||||
.nr Pgps 0 <!-- header/footer size immune from .S -->
|
||||
.nr Hy 1 <!-- hypenation on -->
|
||||
@@ -603,11 +603,7 @@ ${ID}
|
||||
<gi>URL
|
||||
<attval>NAME .
|
||||
<action>
|
||||
-<start>${NAME}\*F
|
||||
-.FS
|
||||
-\fC<URL:${URL}>\fP
|
||||
-.FE
|
||||
-\&</start>
|
||||
+<start>${NAME} \fC<URL:${URL}>\fP</start>
|
||||
</rule>
|
||||
|
||||
<!-- A URL without a NAME attribute -->
|
@ -1,11 +0,0 @@
|
||||
$OpenBSD: patch-transpec_roff_sdata,v 1.1 2007/10/26 21:29:30 jasper Exp $
|
||||
--- transpec/roff.sdata.orig Thu Sep 25 19:16:26 1997
|
||||
+++ transpec/roff.sdata Fri Oct 26 23:26:36 2007
|
||||
@@ -92,6 +92,7 @@ ISO SDATA entity translations for groff.
|
||||
<map from="[excl ]" to="\N'33'">
|
||||
<map from="[iexcl ]" to="\(r!">
|
||||
<map from="[quot ]" to="\N'39'">
|
||||
+<map from="[dquot ]" to="\N'34'">
|
||||
<map from="[apos ]" to="\N'39'">
|
||||
<map from="[lpar ]" to="\N'40'">
|
||||
<map from="[rpar ]" to="\N'41'">
|
@ -1,11 +0,0 @@
|
||||
This package contains SGML formatting tools that were once a part
|
||||
of the base FreeBSD distribution. This port should be regarded
|
||||
as a temporary solution to formatting SGML files until the
|
||||
wrinkles in jade, a DSSSL processor, get ironed out.
|
||||
|
||||
If you are running FreeBSD 2.1.x, you should fetch the groff mm
|
||||
macros from FreeBSD 2.2 or later because the macros in 2.1.x are
|
||||
seriously broken.
|
||||
|
||||
July 16, 1997
|
||||
jfieber@FreeBSD.org
|
@ -1,19 +0,0 @@
|
||||
@comment $OpenBSD: PLIST,v 1.4 2011/06/23 22:50:29 naddy Exp $
|
||||
@bin bin/instant
|
||||
bin/sgmlfmt
|
||||
@man man/man1/instant.1
|
||||
@man man/man1/sgmlfmt.1
|
||||
@man man/man5/transpec.5
|
||||
share/sgml/transpec/
|
||||
share/sgml/transpec/catalog
|
||||
share/sgml/transpec/docbook-html.ts
|
||||
share/sgml/transpec/docbook-roff.ts
|
||||
share/sgml/transpec/html.cmap
|
||||
share/sgml/transpec/html.sdata
|
||||
share/sgml/transpec/iso12083article-roff.ts
|
||||
share/sgml/transpec/linuxdoc-docbook.ts
|
||||
share/sgml/transpec/linuxdoc-html.ts
|
||||
share/sgml/transpec/linuxdoc-roff.ts
|
||||
share/sgml/transpec/roff.cmap
|
||||
share/sgml/transpec/roff.sdata
|
||||
share/sgml/transpec/transpec.dtd
|
Loading…
Reference in New Issue
Block a user