modified for inclusion into GNO base build

This commit is contained in:
gdr 1997-10-30 04:04:35 +00:00
parent 0a72bc2794
commit 998b53c1c9
11 changed files with 96 additions and 30 deletions

View File

@ -1,7 +1,11 @@
CHANGES CHANGES
------- -------
1.2 (18 March 97) 1.2.1 (19 October 1997)
- Incorporated nroff into the GNO base source tree.
- Renamed main.c to nroff.c, to simplify the makefile.
1.2 (18 March 1997)
- Maintenance of nroff has been taken over by Devin Reade, - Maintenance of nroff has been taken over by Devin Reade,
<gdr@myrias.com> <gdr@myrias.com>
- Fixed a significant number of memory trashing bugs. Most of - Fixed a significant number of memory trashing bugs. Most of

50
usr.bin/nroff/Makefile Normal file
View File

@ -0,0 +1,50 @@
#
# $Id: Makefile,v 1.1 1997/10/30 04:04:34 gdr Exp $
#
# Program name
PROG = nroff
SRCS = nroff.c command.c escape.c io.c low.c macros.c strings.c text.c
# Add -D__STACK_CHECK__ to print, on exit, the amount of stack used
CFLAGS +=
STACK = 6144
# We need stack checking for now; recursion is involved.
DEBUG = 1
BINDIR = /usr/bin
TMACDIR = /usr/lib/tmac
LDLIBS = -l/lib/ltermcap
# Don't use the default 'release' and 'install' target.
CUSTOM_RELEASE = true
.INCLUDE: /src/gno/prog.mk
RELTMAC = $(RELEASE_DIR)$(TMACDIR)
release: $(PROG) tmac.an tmac.s nroff.1 man.7 ms.7
$(INSTALL) -d $(RELBIN) $(RELTMAC) $(RELMAN)/man1 $(RELMAN)/man7
$(INSTALL) -m755 nroff $(RELBIN)
$(INSTALL) -m644 tmac.an tmac.s $(RELTMAC)
$(INSTALL) -m644 nroff.1 $(RELMAN)/man1
$(INSTALL) -m644 man.7 ms.7 $(RELMAN)/man7
install: $(PROG) tmac.an tmac.s nroff.1 man.7 ms.7
$(INSTALL) -d $(BINDIR) $(TMACDIR) $(MANDIR)/man1 $(MANDIR)/man7
$(INSTALL) -m755 nroff $(BINDIR)
$(INSTALL) -m644 tmac.an tmac.s $(TMACDIR)
$(INSTALL) -m644 nroff.1 $(MANDIR)/man1
$(INSTALL) -m644 man.7 ms.7 $(MANDIR)/man7
#
# additional dependancies
#
command.o:: $(SUNOS_H) nroff.h config.h
escape.o:: $(SUNOS_H) nroff.h config.h
io.o:: $(SUNOS_H) nroff.h config.h macros.h io.h
low.o:: $(SUNOS_H) nroff.h config.h
macros.o:: $(SUNOS_H) nroff.h config.h macros.h
main.o:: $(SUNOS_H) nroff.h config.h macros.h
strings.o:: $(SUNOS_H) nroff.h config.h
text.o:: $(SUNOS_H) nroff.h config.h io.h

View File

@ -1,7 +1,7 @@
# #
# Makefile for nroff(1). # Makefile for nroff(1).
# #
# $Id: makefile.mk,v 1.2 1997/03/20 06:40:50 gdr Exp $ # $Id: Makefile.unix,v 1.1 1997/10/30 04:04:34 gdr Exp $
# #
IIGS = TRUE # TRUE or FALSE IIGS = TRUE # TRUE or FALSE

View File

@ -1,9 +1,9 @@
nroff - Text Processing Typesetter nroff - Text Processing Typesetter
---------------------------------- ----------------------------------
This is 'nroff 1.2' for GNO/ME 1.0. This is fairly close to This is nroff for GNO. This is fairly close to the real UNIX
the real Unix nroff, although there are still some things that nroff, although there are still some things that this one doesn't
this one doesn't do that it should. do that it should.
This software was ported by Mike Horwath and Jawaid Bazyar for This software was ported by Mike Horwath and Jawaid Bazyar for
the GNO Multitasking Environment. Various bug fixes were applied the GNO Multitasking Environment. Various bug fixes were applied
@ -22,6 +22,9 @@ Installation
man.7 --> /usr/man/man7/man.7 man.7 --> /usr/man/man7/man.7
ms.7 --> /usr/man/man7/ms.7 ms.7 --> /usr/man/man7/ms.7
Check to see that you don't still have /bin/nroff installed.
If you do, delete it.
If you want to put the macro files somewhere other than in If you want to put the macro files somewhere other than in
/usr/lib/tmac, then set your TMACDIR environment variable to /usr/lib/tmac, then set your TMACDIR environment variable to
point to the directory in which they reside. point to the directory in which they reside.

View File

@ -19,7 +19,7 @@
* - Heavily hacked up to conform to "real" nroff by Bill Rosenkranz * - Heavily hacked up to conform to "real" nroff by Bill Rosenkranz
* - Heavily modified by Devin Reade to avoid memory trashing bugs. * - Heavily modified by Devin Reade to avoid memory trashing bugs.
* *
* $Id: macros.c,v 1.2 1997/03/20 06:40:50 gdr Exp $ * $Id: macros.c,v 1.3 1997/10/30 04:04:34 gdr Exp $
*/ */
#ifdef __ORCAC__ #ifdef __ORCAC__
@ -31,7 +31,12 @@ segment "macros____";
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef __GNO__
#include <err.h>
#else
#include "unix/err.h" #include "unix/err.h"
#endif
#ifdef sparc #ifdef sparc
#include "unix/sunos.h" #include "unix/sunos.h"

View File

@ -1,9 +1,9 @@
.\" man(7) manpage by rosenkra@convex.com (Bill Rosenkranz, 7/22/90) .\" man(7) manpage by rosenkra@convex.com (Bill Rosenkranz, 7/22/90)
.\" modifications by Devin Reade, 18 March 97 .\" modifications by Devin Reade, 18 March 97
.\" .\"
.\" $Id: man.7,v 1.2 1997/03/20 06:40:50 gdr Exp $ .\" $Id: man.7,v 1.3 1997/10/30 04:04:34 gdr Exp $
.\" .\"
.TH MAN 7 "18 March 1997" .TH MAN 7 "19 October 1997"
.SH NAME .SH NAME
man - nroff macro package for manual pages man - nroff macro package for manual pages
.SH SYNOPSIS .SH SYNOPSIS

View File

@ -1,6 +1,6 @@
.\" ms(7) manpage by rosenkra@convex.com (Bill Rosenkranz, 7/22/90) .\" ms(7) manpage by rosenkra@convex.com (Bill Rosenkranz, 7/22/90)
.\" .\"
.TH MS 7 .TH MS 7 "19 October 1997"
.SH NAME .SH NAME
ms - text formatting macros ms - text formatting macros
.SH SYNOPSIS .SH SYNOPSIS

View File

@ -1,9 +1,9 @@
.\" nroff(1) manpage by rosenkra@convex.com (Bill Rosenkranz, 7/22/90) .\" nroff(1) manpage by rosenkra@convex.com (Bill Rosenkranz, 7/22/90)
.\" modifications by Devin Reade, 18 March 97 .\" modifications by Devin Reade, 18 March 97
.\" .\"
.\" $Id: nroff.1,v 1.2 1997/03/20 06:40:51 gdr Exp $ .\" $Id: nroff.1,v 1.3 1997/10/30 04:04:34 gdr Exp $
.\" .\"
.TH NROFF 1 "18 March 1997" .TH NROFF 1 "19 October 1997"
.SH NAME .SH NAME
nroff - text processing typesetter nroff - text processing typesetter
.SH SYNOPSIS .SH SYNOPSIS
@ -674,16 +674,21 @@ Indianapolis, Indiana 46220
.fi .fi
.SH HISTORY .SH HISTORY
.nf
Originally written in BDS C (by Stephen L. Browning?) Originally written in BDS C (by Stephen L. Browning?)
.br
Adapted for standard C by W. N. Paul Adapted for standard C by W. N. Paul
.br
Heavily hacked up to conform to the "real" nroff with numerous Heavily hacked up to conform to the "real" nroff with numerous
additions by Bill Rosenkranz 11/89 additions by Bill Rosenkranz 11/89
.br
Bug fixes (termcap) and Minix 1.5.5 compatibility by Bug fixes (termcap) and Minix 1.5.5 compatibility by
Wim 'Blue Baron' van Dorst (wsincc@tuerc3.urc.tue.nl) Wim 'Blue Baron' van Dorst (wsincc@tuerc3.urc.tue.nl)
.br
.fi Modified for GNO v2.0.6 by Devin Reade.
.SH VERSION
This manual page documents
.BR nroff
version 1.2.1.
.SH RECOMMENDATIONS .SH RECOMMENDATIONS
I envisioned this rather limited version as a way of formatting I envisioned this rather limited version as a way of formatting
man pages for my Atari ST system. man pages for my Atari ST system.

View File

@ -22,12 +22,11 @@
* - Heavily hacked up to conform to "real" nroff by Bill Rosenkranz * - Heavily hacked up to conform to "real" nroff by Bill Rosenkranz
* - Heavily modified by Devin Reade to avoid memory trashing bugs. * - Heavily modified by Devin Reade to avoid memory trashing bugs.
* *
* $Id: nroff.c,v 1.2 1997/03/20 06:40:50 gdr Exp $ * $Id: nroff.c,v 1.3 1997/10/30 04:04:35 gdr Exp $
*/ */
#ifdef __ORCAC__ #ifdef __ORCAC__
segment "main______"; segment "main______";
#pragma stacksize 6144
#pragma optimize 79 #pragma optimize 79
#endif #endif
@ -107,9 +106,9 @@ static char *version = "(GNO) v1.2, 5 Mar 97 gdr";
* *
*************************************************************************/ *************************************************************************/
#ifdef CHECK_STACK #ifdef __STACK_CHECK__
static void static void
stackCleanup (void) { printStack (void) {
fprintf(stderr, "stack usage: %d bytes\n", _endStackCheck()); fprintf(stderr, "stack usage: %d bytes\n", _endStackCheck());
} }
#endif #endif
@ -126,9 +125,9 @@ main (int argc, char *argv[]) {
char *ps; char *ps;
#ifdef __GNO__ #ifdef __GNO__
#ifdef CHECK_STACK #ifdef __STACK_CHECK__
_beginStackCheck(); _beginStackCheck();
atexit(stackCleanup); atexit(printStack);
#endif #endif
if (argc > 0) { if (argc > 0) {
progname = __prognameGS(); progname = __prognameGS();
@ -991,7 +990,7 @@ processFile (void) {
} }
} }
#pragma optimize 8 #pragma optimize 78
#pragma debug 0 #pragma debug 0
void void

View File

@ -1,9 +1,9 @@
Name: nroff Name: nroff
Version: 1.2 (18 Mar 97) Version: 1.2.1 (19 Oct 97)
Shell: GNO/ME Shell: GNO
Author: Various. Maintained by Devin Reade. Author: Various. Maintained by Devin Reade.
Contact: gdr@myrias.com Contact: gdr@eddore.myrias.com
Where: /usr/bin Where: /usr/bin
FTP: apple2.caltech.edu, ground.isca.uiowa.edu FTP: apple2.caltech.edu, ground.isca.uiowa.edu, trenco.myrias.com
Text Processing Typesetter Text Processing Typesetter

View File

@ -1,18 +1,18 @@
/* /*
* $Id: nroff.rez,v 1.1 1997/03/14 06:22:29 gdr Exp $ * $Id: nroff.rez,v 1.2 1997/10/30 04:04:35 gdr Exp $
*/ */
#include "Types.Rez" #include "Types.Rez"
resource rVersion (0x1, purgeable3, nocrossbank) { resource rVersion (0x1, purgeable3, nocrossbank) {
{ 1, 2, 0, /* version 1.2.0 */ { 1, 2, 1, /* version */
release, /* development|alpha|beta|final|release */ release, /* development|alpha|beta|final|release */
0 /* non-final release number */ 0 /* non-final release number */
}, },
verBritain, /* close enough */ verUS,
"nroff", "nroff",
"Text Processing Typesetter\n" "Text Processing Typesetter\n"
"Devin Reade <gdr@myrias.com>\n" "Devin Reade <gdr@eddore.myrias.com>\n"
"Canada" "Canada"
}; };