Remove the share/man/tools directory. Nothing in here works anymore, and

'manck' from ports does just about everything these tools ever did.
(I did have these 90% working about 5 years ago, but manck came along.....)

The only file of interest might be sp.ignore, but it can be pulled
from the attic if anyone has that much interest.

Inspired by: Mark Murray's deletion of share/man/man0
This commit is contained in:
Mike Pritchard 2002-05-29 04:07:49 +00:00
parent f119dc7c54
commit c7dd347c65
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97440
27 changed files with 0 additions and 8971 deletions

View File

@ -1,249 +0,0 @@
'\" mm -12 M.folio
.br
.tl '''May 16, 1980'
.tl '''T.A.D.'
.rs
.sp 3
.ce
UNIX User's Manual
.ce
Release 3.0
.tr ~
.sp 3
.ce
.ul
PRINTING INSTRUCTIONS
.sp 2
Print entire manual two-sided; mock-ups of front and back
cover (together with sizing information), as well as cover
title and tabs copy are attached.
.sp
Total page count (including blank pages) is 704.
.nf
.sp 2
.ce
.I "FOLIO LIST"
.sp 2
.I "Front Matter:"
.sp
.ta 5 10 25 34
.ul
No tab:
Title page ~~~~1*
Trademark page ~~~~2*
.FS *
Pages 1 and 2 are
.I not
numbered.
.I All
other pages
.I "that carry any text"
are numbered.
.FE
Acknowledgements ~~~~3
Blank page ~~~~4
.sp
.ul
Tab "INTRO":
Introduction ~~~~5-6 incl.
How To Get Started ~~~~7-10 incl.
.sp
.ul
Tab "CONTENTS":
Contents ~~~~1-9 incl.
Blank page ~~~10
.sp
.ul
Tab "INDEX":
Permuted Index ~~~~1-32 incl.
.bp
.nf
.ta 18 +12 +18 +12 +18 +12
.sp 3
.ul
Tab "1":
'\" Section 1 goes here
INTRO(1)  1 DATE(1)  1 JOIN(1)  1
300(1)  1-2 incl. DC(1)  1-2 incl. KAS(1)  1
4014(1)  1 DD(1)  1-2 incl. KILL(1)  1
450(1)  1 DELTA(1)  1-2 incl. KUN(1)  1
ACCT(1M)  1-2 incl. DEROFF(1)  1 LD(1)  1-2 incl.
ACCTCMS(1M)  1 DEVNM(1M)  1 LEX(1)  1-2 incl.
ACCTCOM(1)  1-2 incl. DF(1)  1 LINE(1)  1
ACCTCON(1M)  1 DIFF(1)  1 LINK(1M)  1
ACCTMERG(1M)  1 DIFF3(1)  1 LINT(1)  1-2 incl.
ACCTPRC(1M)  1 DIFFMK(1)  1 LOGIN(1)  1
ACCTSH(1M)  1-2 incl. DIRCMP(1)  1 LOGNAME(1)  1
ADB(1)  1-6 incl. DPD(1C)  1-2 incl. LORDER(1)  1
ADMIN(1)  1-4 incl. DPR(1C)  1 LPR(1)  1
AR(1)  1-2 incl. DU(1)  1 LS(1)  1-2 incl.
ARCV(1)  1 DUMP(1M)  1 M4(1)  1-3 incl.
AS.PDP(1)  1 ECHO(1)  1 MAIL(1)  1-2 incl.
AS.VAX(1)  1 ED(1)  1-8 incl. MAKE(1)  1-5 incl.
AWK(1)  1-3 incl. EFL(1)  1-2 incl. MAN(1)  1-2 incl.
BANNER(1)  1 ENV(1)  1 MESG(1)  1
BASENAME(1)  1 EQN(1)  1-2 incl. MKDIR(1)  1
BC(1)  1-2 incl. ERRDEAD(1M)  1 MKFS(1M)  1-2 incl.
BCOPY(1M)  1 ERRDEMON(1M)  1 MKNOD(1M)  1
BDIFF(1)  1 ERRPT(1M)  1 MM(1)  1-2 incl.
BFS(1)  1-3 incl. ERRSTOP(1M)  1 MMCHEK(1)  1
BS(1)  1-9 incl. EXPR(1)  1-2 incl. MMT(1)  1
CAL(1)  1 F77(1)  1-2 incl. MOUNT(1M)  1
CALENDAR(1)  1 FACTOR(1)  1 MVDIR(1M)  1
CAT(1)  1 FGET(1C)  1-2 incl. NCHECK(1M)  1
CB(1)  1 FGET.DEMON(1C)  1 NEWGRP(1)  1
CC(1)  1-2 incl. FILE(1)  1 NEWS(1)  1
CD(1)  1 FIND(1)  1-2 incl. NICE(1)  1
CDC(1)  1-2 incl. FSCK(1M)  1-2 incl. NL(1)  1-2 incl.
CHMOD(1)  1 FSCV(1M)  1 NM(1)  1
CHOWN(1)  1 FSDB(1M)  1-3 incl. NOHUP(1)  1
CHROOT(1M)  1 FSEND(1C)  1-2 incl. OD(1)  1
CLRI(1M)  1 FWTMP(1M)  1 ORJESTAT(1C)  1
CMP(1)  1 GCAT(1C)  1-2 incl. PACK(1)  1-2 incl.
COL(1)  1 GCOSMAIL(1C)  1 PASSWD(1)  1
COMB(1)  1 GDEV(1G)  1 PASTE(1)  1
COMM(1)  1 GED(1G)  1-6 incl. PR(1)  1-2 incl.
CONFIG(1M)  1-3 incl. GET(1)  1-5 incl. PROF(1)  1
CP(1)  1 GETOPT(1)  1 PROFILER(1M)  1
CPIO(1)  1-2 incl. GRAPH(1G)  1 PRS(1)  1-3 incl.
CRASH(1M)  1-2 incl. GRAPHICS(1G)  1 PS(1)  1-2 incl.
CREF(1)  1-2 incl. GREEK(1)  1 PTX(1)  1
CRON(1M)  1 GREP(1)  1-2 incl. PWCK(1M)  1
CRYPT(1)  1 GUTIL(1G)  1-2 incl. PWD(1)  1
CSPLIT(1)  1-2 incl. HELP(1)  1 RATFOR(1)  1
CT(1C)  1 HP(1)  1-2 incl. REFORM(1)  1-3 incl.
CU(1C)  1-2 incl. HYPHEN(1)  1 REGCMP(1)  1
CUT(1)  1 ID(1)  1 RESTOR(1M)  1-2 incl.
CW(1)  1-3 incl. INSTALL(1M)  1 RJESTAT(1C)  1
RM(1)  1 SU(1)  1 UNIQ(1)  1
RMDEL(1)  1 SUM(1)  1 UNITS(1)  1
RSH(1)  1 SYNC(1M)  1 UUCLEAN(1M)  1
RUNACCT(1M)  1-2 incl. SYSDEF(1M)  1 UUCP(1C)  1-2 incl.
SACT(1)  1 TABS(1)  1-2 incl. UUSTAT(1C)  1-2 incl.
SAG(1M)  1 TAIL(1)  1 UUSUB(1M)  1
SCC(1)  1 TAR(1)  1-2 incl. UUTO(1C)  1
SCCSDIFF(1)  1 TBL(1)  1-2 incl. UUX(1C)  1
SDB(1)  1-4 incl. TC(1)  1 VAL(1)  1-2 incl.
SDIFF(1)  1 TEE(1)  1 VC(1)  1-3 incl.
SED(1)  1-3 incl. TEST(1)  1 VLX(1M)  1
SEND(1C)  1-6 incl. TIME(1)  1 VOLCOPY(1M)  1
SETMNT(1M)  1 TIMEX(1)  1 VPMC(1C)  1-10 incl.
SH(1)  1-7 incl. TOC(1G)  1-2 incl. VPMSTART(1C)  1
SHUTDOWN(1M)  1 TOUCH(1)  1 VPR(1)  1
SIZE(1)  1 TP(1)  1-2 incl. WAIT(1)  1
SLEEP(1)  1 TPLOT(1G)  1 WALL(1M)  1
SNO(1)  1 TR(1)  1 WC(1)  1
SORT(1)  1-2 incl. TROFF(1)  1-2 incl. WHAT(1)  1
SPELL(1)  1 TRUE(1)  1 WHO(1)  1
SPLINE(1G)  1 TSORT(1)  1 WHODO(1M)  1
SPLIT(1)  1 TTY(1)  1 WRITE(1)  1
ST(1M)  1 TYPO(1)  1 XARGS(1)  1-2 incl.
STAT(1G)  1-3 incl. UMASK(1)  1 XREF(1)  1
STRIP(1)  1 UNAME(1)  1 YACC(1)  1
STTY(1)  1-3 incl. UNGET(1)  1
.sp 3
.ul
Tab "2":
'\" Section 2 goes here
INTRO(2)  1-5 incl. GETPID(2)  1 SETUID(2)  1
ACCESS(2)  1 GETUID(2)  1 SIGNAL(2)  1-3 incl.
ACCT(2)  1 IOCTL(2)  1 STAT(2)  1-2 incl.
ALARM(2)  1 KILL(2)  1 STIME(2)  1
BRK(2)  1 LINK(2)  1 SYNC(2)  1
CHDIR(2)  1 LSEEK(2)  1 TIME(2)  1
CHMOD(2)  1 MKNOD(2)  1-2 incl. TIMES(2)  1
CHOWN(2)  1 MOUNT(2)  1 ULIMIT(2)  1
CHROOT(2)  1 NICE(2)  1 UMASK(2)  1
CLOSE(2)  1 OPEN(2)  1-2 incl. UMOUNT(2)  1
CREAT(2)  1 PAUSE(2)  1 UNAME(2)  1
DUP(2)  1 PIPE(2)  1 UNLINK(2)  1
EXEC(2)  1-2 incl. PROFIL(2)  1 USTAT(2)  1
EXIT(2)  1 PTRACE(2)  1-2 incl. UTIME(2)  1
FCNTL(2)  1 READ(2)  1 WAIT(2)  1
FORK(2)  1 SETPGRP(2)  1 WRITE(2)  1
Blank page  1
.sp 3
.bp
.ul
Tab "3":
'\" Section 3 goes here
INTRO(3)  1 FREXP(3C)  1 PRINTF(3S)  1-3 incl.
A64L(3C)  1 FSEEK(3S)  1 PUTC(3S)  1
ABORT(3C)  1 GAMMA(3M)  1 PUTPWENT(3C)  1
ABS(3C)  1 GETC(3S)  1 PUTS(3S)  1
ASSERT(3X)  1 GETENV(3C)  1 QSORT(3C)  1
ATOF(3C)  1 GETGRENT(3C)  1 RAND(3C)  1
BESSEL(3M)  1 GETLOGIN(3C)  1 REGEX(3X)  1-2 incl.
BSEARCH(3C)  1 GETOPT(3C)  1-2 incl. SCANF(3S)  1-3 incl.
CONV(3C)  1 GETPASS(3C)  1 SETBUF(3S)  1
CRYPT(3C)  1 GETPW(3C)  1 SETJMP(3C)  1
CTERMID(3S)  1 GETPWENT(3C)  1 SINH(3M)  1
CTIME(3C)  1-2 incl. GETS(3S)  1 SLEEP(3C)  1
CTYPE(3C)  1 HYPOT(3M)  1 SSIGNAL(3C)  1
CUSERID(3S)  1 L3TOL(3C)  1 STDIO(3S)  1
ECVT(3C)  1 LOGNAME(3X)  1 STRING(3C)  1-2 incl.
END(3C)  1 LSEARCH(3C)  1 SWAB(3C)  1
EXP(3M)  1 MALLOC(3C)  1 SYSTEM(3S)  1
FCLOSE(3S)  1 MKTEMP(3C)  1 TMPFILE(3S)  1
FERROR(3S)  1 MONITOR(3C)  1 TMPNAM(3S)  1
FLOOR(3M)  1 NLIST(3C)  1 TRIG(3M)  1
FOPEN(3S)  1 PERROR(3C)  1 TTYNAME(3C)  1
FPTRAP(3X)  1 PLOT(3X)  1 UNGETC(3S)  1
FREAD(3S)  1 POPEN(3S)  1
.sp 3
.ul
Tab "4":
'\" Section 4 goes here
INTRO(4)  1 HS(4)  1 RK(4)  1
CAT(4)  1 HT(4)  1 RL(4)  1
DJ(4)  1 KL(4)  1 RP(4)  1
DMC(4)  1 KMC(4)  1 ST(4)  1
DN(4)  1 LP(4)  1 TM(4)  1
DQS(4)  1-2 incl. MEM(4)  1 TRACE(4)  1
DU(4)  1 NULL(4)  1 TTY(4)  1-8 incl.
DZ(4)  1 PCL(4)  1 VP(4)  1
ERR(4)  1 PRF(4)  1 VPM(4)  1-2 incl.
HP(4)  1 RF(4)  1
.sp 3
.ul
Tab "5":
'\" Section 5 goes here
INTRO(5)  1 ERRFILE(5)  1-2 incl. MNTTAB(5)  1
A.OUT(5)  1-4 incl. FS(5)  1-2 incl. PASSWD(5)  1
ACCT(5)  1-2 incl. FSPEC(5)  1 PLOT(5)  1
AR(5)  1 GPS(5)  1-2 incl. PNCH(5)  1
CHECKLIST(5)  1 GROUP(5)  1 PROFILE(5)  1
CORE(5)  1 INITTAB(5)  1 SCCSFILE(5)  1-3 incl.
CPIO(5)  1 INODE(5)  1 TP(5)  1
DIR(5)  1 MASTER(5)  1-2 incl. UTMP(5)  1
DUMP(5)  1-2 incl.
.sp 3
.bp
.ul
Tab "6":
'\" Section 6 goes here
INTRO(6)  1 CRAPS(6)  1-2 incl. REVERSI(6)  1
ARITHMETIC(6)  1 HANGMAN(6)  1 SKY(6)  1
BACK(6)  1 MAZE(6)  1 TTT(6)  1
BJ(6)  1 MOO(6)  1 WUMP(6)  1
CHESS(6)  1 QUIZ(6)  1 Blank page  1
.sp 3
.ul
Tab "7":
'\" Section 7 goes here
INTRO(7)  1 GREEK(7)  1 REGEXP(7)  1-3 incl.
ASCII(7)  1 MAN(7)  1-2 incl. STAT(7)  1
ENVIRON(7)  1 MM(7)  1 TERM(7)  1
EQNCHAR(7)  1 MV(7)  1 TYPES(7)  1
FCNTL(7)  1
.sp 3
.ul
Tab "8":
'\" Section 8 goes here
INTRO(8)  1 HASP(8)  1-6 incl. RP6FMT(8)  1
70BOOT(8)  1-4 incl. INIT(8)  1-2 incl. SAR(8)  1
CRASH(8)  1-3 incl. MAKEKEY(8)  1 TAPEBOOT(8)  1
DISKBOOT(8)  1 MK(8)  1-2 incl. UNIXBOOT(8)  1
ETP(8)  1 RC(8)  1 UVAC(8)  1
FILESAVE(8)  1 RJE(8)  1-4 incl. VAXOPS(8)  1-4 incl.
GETTY(8)  1 ROMBOOT(8)  1-2 incl. Blank page  1

View File

@ -1,68 +0,0 @@
'\" troff -g M.tabs | gcat -ftabs&
.fp 2 CW
.de h
.ps 6
.vs 6p
.tl '___''___'
.vs
.ps
..
.wh 0 h
.ss 18
.nf
.rs
.ft 3
.ps 24
.vs 33p
.sp 1i
.ce 4
U\s-6NIX\s+6
User's Manual
.sp 1i
U\s-6NIX\s+6
User's Manual
.bp
.rs
.ft 2
.ps 10
.vs 11p
.ta 3i
.sp 1i
I I
N N
T T
R R
O O
.sp 27p
C C
O O
N N
T T
E E
N N
T T
S S
.sp 27p
I I
N N
D D
E E
X X
.sp 27p
.ps 12
.vs 13p
1 1
.sp 27p
2 2
.sp 27p
3 3
.sp 27p
4 4
.sp 27p
5 5
.sp 27p
6 6
.sp 27p
7 7
.sp 27p
8 8

View File

@ -1,198 +0,0 @@
This directory contains 14 shell procedures designed to carry out
various verification and regeneration tasks on the UNIX User's
Manual. The outputs of all procedures are left in files in
/_u_s_r/_m_a_n/_t_m_p; `tocrc (see below) also leaves output in
/_u_s_r/_m_a_n/_m_a_n_0. By default, these procedures operate on all 8
sections of the manual. The options `-s' and `-f' are available
(except in `mgrep' and `tocrc') to restrict the list of sections
and/or files to be used. For example:
ckspell -s 1 2 3 -f a\*
will check spelling in all files whose names begin with `a' in
Sections 1-3. Two additional options, `-m' and `-t', can be used
to change the shell procedures' idea of where the manual and its
`tmp' directory reside. For example:
list -m /usr/aman -t /usr/aman/tmp
might be meaningful if, for instance, an alternate manual is
located in /_u_s_r/_a_m_a_n. These options are also useful when a new
manual is being built in a secluded place.
Note that some of the shell procedures produce 8 result files,
one for each section of the manual. In particular, the 4 shell
procedures prefaced with `ck', which perform different types of
verification, produce a unique sorted list for each section, as
opposed to a file-by-file list. This means that one must search
all the files in a section (using `grep', most likely) for
occurrences of a particular string.
Occasionally, some of these procedures will produce lines of
spurious output. This happens when, for instance, some text
looks like a cross-reference or a file name, e.g., `array(3)' or
`nroff/troff'.
The following describes these 14 procedures:
1. ckcrefs
Locates all cross-references to other manual entries and
checks to see whether the referenced pages exist. Produces
files _b_a_d_c_r_e_f[_1-_8] containing all bad cross-references in
each section. Also produces files _l_o_w_e_r._s_u_f[_1-_8], containing
occurrences of lower-case section suffixes, i.e., 1c, 1m, 3c,
which should be changed to upper-case (1C, 1M, 3C, etc.).
2. ckfrefs
Locates all references in the FILES portion of manual entries
and checks to see whether the referenced files exist in the
running system. Produces files _b_a_d_f_r_e_f[_1-_8] containing
references to non-existent files. Note that file references
under headings other than FILES are _n_o_t checked. Temporary
files will, of course, not be found.
3. cknames
Performs various checks on the `.TH' line and the NAME
section of entries. Note that the files produced by this
procedure contain the file names of entries that fail the
corresponding check:
Checks to see that the entry contains a `.SH NAME'
section, producing files _n_o._N_A_M_E[_1-_8].
Checks the NAME section of the entry to insure that it is
exactly one line long (multi-line NAMEs will severely
confuse `tocrc'), producing files _n_o_t._o_n_e._l_i_n_e[_1-_8].
Checks to see that the entry contains a `.TH' line,
producing files _n_o._T_H[_1-_8].
Checks that the entry name and section given on the TH
line match the file name of that entry. For example, a
file containing `.TH GURP 1M' should be called `gurp.1m'.
Produces files _f_i_l_e._m_a_t_c_h[_1-_8].
Checks that the first name appearing on the NAME line is
the same as the entry name on the TH line (`ckso' below
assumes that this is always true). Produces files
_n_a_m_e._o_r_d_e_r[_1-_8].
4. ckso
This procedure performs two types of verification of _n_r_o_f_f
`.so' pointers in /_u_s_r/_m_a_n/_m_a_n[_1-_8]. It first locates files
that contain only a `.so' reference to a real entry, and
checks to see whether that file (entry) exists. Bad
references are written to the files _b_a_d_s_o[_1-_8]. Secondly,
`ckso' verifies the reverse; it locates each real entry,
looks at the NAME portion to see whether more than one name
appears there, and checks whether a file with a `.so'
reference exists for all such names other than the first.
Missing `.so' entries are written to the files _n_e_e_d_s_o[_1-_8].
5. ckspell
Utilizes _s_p_e_l_l to check for spelling errors in manual
entries. Produces file _s_p._e_r_r_s containing a section-by-
section list of errors. Uses file /_u_s_r/_m_a_n/_t_o_o_l_s/_s_p._i_g_n_o_r_e
to eliminate strings that appear often in the manual and are
normally flagged as errors by `spell'.
6. list
Produces file _l_i_s_t containing a `long' listing with block
counts (`ls -ls') for each section of the manual.
7. mcmp
Compares two versions of the manual and reports what files
are unique to each and whether or not the common files have
changed. If the `-d' option is given, _d_i_f_f-style listings
are generated for each common file instead. The `-o' option
is used to specify the name of the second manual directory;
/_u_s_r/_n_m_a_n is the default. Produces files _c_m_p[_1-_8] or
_d_i_f_f[_1-_8].
8. mgrep
Searches entire manual for the patterns specified as
arguments (i.e., `mgrep "typewriter"'). Produces file _g_r_e_p_s,
containing section-by-section list for each pattern.
9. mklinks
Creates files containing appropriate `.so' links to major
entries where necessary. These links point to their own
directory; don't run this procedure anywhere else than in
/_u_s_r/_m_a_n. Should resolve all errors noted in _n_e_e_d_s_o[_1-_8]
(see `ckso' above).
10. mroff
Utilizes the _m_a_n command to _t_r_o_f_f and typeset manual entries.
The `-p' (yes, `-p'!) option is used to produce entries in a
6x9 inch format, as opposed to the default 8.5x11. Produces
files _m_l_o_g[_1-_8] containing logs of the files that were
processed. _M_r_o_f_f ignores files that contain only a `.so'
line.
11. pgcnt
Produces files _p_a_g_e_s[_1-_8] containing page counts for each
entry. Also produces _t_o_t_a_l_p_g_s containing totals for each
section and a grand total. The `-p' option should be used to
count pages in the small format (see `mroff' above). Uses
the C program _p_a_g_e_s (compiled from _p_a_g_e_s._c).
12. prnames
Produces files _n_a_m_e_s[_1-_8] containing the NAME portion of each
entry.
13. prsynops
Produces files _s_y_n_o_p_s[_1-_8] containing the SYNOPSIS portion of
each entry. A question mark means that the entry has no
SYNOPSIS portion.
14. tocrc
Regenerates input for Table of Contents and Permuted Index.
Use `tocrc all' to regenerate both from scratch, `tocrc t' to
regenerate both from existing input files _t_o_c_x[_1-_8] in
/_u_s_r/_m_a_n/_t_m_p, or `tocrc [1-8]' to create, in /_u_s_r/_m_a_n/_t_m_p,
the corresponding input file _t_o_c_x[_1-_8]. The `-p' option
should be used when preparing the table of contents and/or
index in the small (6x9 inch) format (this option, if
present, _m_u_s_t be the first argument to `tocrc'). See
description in /_u_s_r/_m_a_n/_R_E_A_D._M_E of the files in
/_u_s_r/_m_a_n/_m_a_n_0. Uses files _b_r_e_a_k and _i_g_n_o_r_e in
/_u_s_r/_m_a_n/_t_o_o_l_s.
The file ._p_a_r_a_m is described in /_u_s_r/_m_a_n/_R_E_A_D._M_E. The files
_M._f_o_l_i_o and _M._t_a_b_s are self-explanatory.

View File

@ -1,198 +0,0 @@
This directory contains 14 shell procedures designed to carry out
various verification and regeneration tasks on the UNIX User's
Manual. The outputs of all procedures are left in files in
/_u_s_r/_m_a_n/_t_m_p; `tocrc (see below) also leaves output in
/_u_s_r/_m_a_n/_m_a_n_0. By default, these procedures operate on all 8
sections of the manual. The options `-s' and `-f' are available
(except in `mgrep' and `tocrc') to restrict the list of sections
and/or files to be used. For example:
ckspell -s 1 2 3 -f a\*
will check spelling in all files whose names begin with `a' in
Sections 1-3. Two additional options, `-m' and `-t', can be used
to change the shell procedures' idea of where the manual and its
`tmp' directory reside. For example:
list -m /usr/aman -t /usr/aman/tmp
might be meaningful if, for instance, an alternate manual is
located in /_u_s_r/_a_m_a_n. These options are also useful when a new
manual is being built in a secluded place.
Note that some of the shell procedures produce 8 result files,
one for each section of the manual. In particular, the 4 shell
procedures prefaced with `ck', which perform different types of
verification, produce a unique sorted list for each section, as
opposed to a file-by-file list. This means that one must search
all the files in a section (using `grep', most likely) for
occurrences of a particular string.
Occasionally, some of these procedures will produce lines of
spurious output. This happens when, for instance, some text
looks like a cross-reference or a file name, e.g., `array(3)' or
`nroff/troff'.
The following describes these 14 procedures:
1. ckcrefs
Locates all cross-references to other manual entries and
checks to see whether the referenced pages exist. Produces
files _b_a_d_c_r_e_f[_1-_8] containing all bad cross-references in
each section. Also produces files _l_o_w_e_r._s_u_f[_1-_8], containing
occurrences of lower-case section suffixes, i.e., 1c, 1m, 3c,
which should be changed to upper-case (1C, 1M, 3C, etc.).
2. ckfrefs
Locates all references in the FILES portion of manual entries
and checks to see whether the referenced files exist in the
running system. Produces files _b_a_d_f_r_e_f[_1-_8] containing
references to non-existent files. Note that file references
under headings other than FILES are _n_o_t checked. Temporary
files will, of course, not be found.
3. cknames
Performs various checks on the `.TH' line and the NAME
section of entries. Note that the files produced by this
procedure contain the file names of entries that fail the
corresponding check:
Checks to see that the entry contains a `.SH NAME'
section, producing files _n_o._N_A_M_E[_1-_8].
Checks the NAME section of the entry to insure that it is
exactly one line long (multi-line NAMEs will severely
confuse `tocrc'), producing files _n_o_t._o_n_e._l_i_n_e[_1-_8].
Checks to see that the entry contains a `.TH' line,
producing files _n_o._T_H[_1-_8].
Checks that the entry name and section given on the TH
line match the file name of that entry. For example, a
file containing `.TH GURP 1M' should be called `gurp.1m'.
Produces files _f_i_l_e._m_a_t_c_h[_1-_8].
Checks that the first name appearing on the NAME line is
the same as the entry name on the TH line (`ckso' below
assumes that this is always true). Produces files
_n_a_m_e._o_r_d_e_r[_1-_8].
4. ckso
This procedure performs two types of verification of _n_r_o_f_f
`.so' pointers in /_u_s_r/_m_a_n/_m_a_n[_1-_8]. It first locates files
that contain only a `.so' reference to a real entry, and
checks to see whether that file (entry) exists. Bad
references are written to the files _b_a_d_s_o[_1-_8]. Secondly,
`ckso' verifies the reverse; it locates each real entry,
looks at the NAME portion to see whether more than one name
appears there, and checks whether a file with a `.so'
reference exists for all such names other than the first.
Missing `.so' entries are written to the files _n_e_e_d_s_o[_1-_8].
5. ckspell
Utilizes _s_p_e_l_l to check for spelling errors in manual
entries. Produces file _s_p._e_r_r_s containing a section-by-
section list of errors. Uses file /_u_s_r/_m_a_n/_t_o_o_l_s/_s_p._i_g_n_o_r_e
to eliminate strings that appear often in the manual and are
normally flagged as errors by `spell'.
6. list
Produces file _l_i_s_t containing a `long' listing with block
counts (`ls -ls') for each section of the manual.
7. mcmp
Compares two versions of the manual and reports what files
are unique to each and whether or not the common files have
changed. If the `-d' option is given, _d_i_f_f-style listings
are generated for each common file instead. The `-o' option
is used to specify the name of the second manual directory;
/_u_s_r/_n_m_a_n is the default. Produces files _c_m_p[_1-_8] or
_d_i_f_f[_1-_8].
8. mgrep
Searches entire manual for the patterns specified as
arguments (i.e., `mgrep "typewriter"'). Produces file _g_r_e_p_s,
containing section-by-section list for each pattern.
9. mklinks
Creates files containing appropriate `.so' links to major
entries where necessary. These links point to their own
directory; don't run this procedure anywhere else than in
/_u_s_r/_m_a_n. Should resolve all errors noted in _n_e_e_d_s_o[_1-_8]
(see `ckso' above).
10. mroff
Utilizes the _m_a_n command to _t_r_o_f_f and typeset manual entries.
The `-p' (yes, `-p'!) option is used to produce entries in a
6x9 inch format, as opposed to the default 8.5x11. Produces
files _m_l_o_g[_1-_8] containing logs of the files that were
processed. _M_r_o_f_f ignores files that contain only a `.so'
line.
11. pgcnt
Produces files _p_a_g_e_s[_1-_8] containing page counts for each
entry. Also produces _t_o_t_a_l_p_g_s containing totals for each
section and a grand total. The `-p' option should be used to
count pages in the small format (see `mroff' above). Uses
the C program _p_a_g_e_s (compiled from _p_a_g_e_s._c).
12. prnames
Produces files _n_a_m_e_s[_1-_8] containing the NAME portion of each
entry.
13. prsynops
Produces files _s_y_n_o_p_s[_1-_8] containing the SYNOPSIS portion of
each entry. A question mark means that the entry has no
SYNOPSIS portion.
14. tocrc
Regenerates input for Table of Contents and Permuted Index.
Use `tocrc all' to regenerate both from scratch, `tocrc t' to
regenerate both from existing input files _t_o_c_x[_1-_8] in
/_u_s_r/_m_a_n/_t_m_p, or `tocrc [1-8]' to create, in /_u_s_r/_m_a_n/_t_m_p,
the corresponding input file _t_o_c_x[_1-_8]. The `-p' option
should be used when preparing the table of contents and/or
index in the small (6x9 inch) format (this option, if
present, _m_u_s_t be the first argument to `tocrc'). See
description in /_u_s_r/_m_a_n/_R_E_A_D._M_E of the files in
/_u_s_r/_m_a_n/_m_a_n_0. Uses files _b_r_e_a_k and _i_g_n_o_r_e in
/_u_s_r/_m_a_n/_t_o_o_l_s.
The file ._p_a_r_a_m is described in /_u_s_r/_m_a_n/_R_E_A_D._M_E. The files
_M._f_o_l_i_o and _M._t_a_b_s are self-explanatory.

View File

@ -1,55 +0,0 @@
Thu Jul 28 15:27:15 PDT 1983
040(8)
Execve(2)
Fopen(3S)
Fseek(3S)
fIfcntlfP(2)
fIfflushfP(3)
fIsetitimerfP(2)
fIsetrlimitfP(2)
access(3F)
exec(2)
fclose(3s /usr/man/man3/ferror.3s /usr/man/man3/fread.3s /usr/man/man3/fseek.3S)
fclose(3)
fdate(3F)
fflush(3S)
filsys(5)
fopen(3S)
fork(3F)
getchar(3)
getenv(3F)
gethostent(3N)
getnetent(3N)
getprotoent(3N)
getpw(3)
getpwuid(3)
iarray(3)
idate(3F)
itime(3F)
kill(3F)
library(3M)
link(3F)
ltime(3F)
moncontrol(1)
perror(3F)
plot(1)
popen(3S)
printf(3)
rand(3)
rewind(1)
sigmask(2)
signal(2)
signal(3)
signal(3F)
sleep(3F)
stdio(3)
stty(3)
system(3F)
tarray(2)
time(2)
time(3)
time(3F)
times(2)
unlink(3F)
wait(3F)

View File

@ -1,3 +0,0 @@

;
:

View File

@ -1,78 +0,0 @@
set x $*
. ./.param
for dir in $DIRLST
do
> $TMPDIR/cref$dir
cd $MANDIR/man$dir
for file in $FILLST
do
so=`line < $file | sed "s/ .*$//"`
if test "$so" = ".so"
then
continue
fi
grep ".*([1-8][cmsgxjvCMSGXJV]*)" $file >> $TMPDIR/cref$dir
done
cd $TMPDIR
echo " ," >> cref$dir
date > lower.suf$dir
echo >> lower.suf$dir
date > badcref$dir
echo >> badcref$dir
ed - cref$dir >> lower.suf$dir <<!
g/ *\(([1-8][CMSGXJVcmsgxjv]*)\)/s//\1/
1,\$s/ /\\
/g
1,\$s/ /\\
/g
1,\$s/,/\\
/g
v/(/d
g/\\\\\^/s///
g/\\\\\|/s///
g/([1-8][cgmsxjv])/p
g//d
g/^(/d
g/(/s//./
g/^\./d
g/C).*/s//c/
g/G).*/s//g/
g/M).*/s//m/
g/S).*/s//s/
g/X).*/s//x/
g/J).*/s//j/
g/V).*/s//v/
g/).*/s///
w
q
!
sort -i cref$dir | uniq > tmp.$$
while read cref
do
sect=`echo $cref | sed "s/.*\.\(.\).*/\1/"`
try=`ls $MANDIR/man$sect/$cref 2>&1`
if test "$try" = "$MANDIR/man$sect/$cref"
then
continue
else
echo $try | sed -e "s;$MANDIR/man..;;" -e "s; not found;;" >> badcref$dir
fi
done < tmp.$$
ed - badcref$dir <<!
g/\.\([1-8]\)/s//(\1/
g/c$/s//C)/
g/m$/s//M)/
g/s$/s//S)/
g/g$/s//G)/
g/x$/s//X)/
g/j$/s//J)/
g/v$/s//V)/
g/[^)]$/s/$/)/
1s/.$//
w
q
!
rm -f tmp.$$ cref$dir
done

View File

@ -1,71 +0,0 @@
#! /bin/sh
set x $*
. ./.param
for dir in $DIRLST
do
> $TMPDIR/fref$dir
cd $MANDIR/man$dir
for file in $FILLST
do
so=`line < $file | sed "s/ .*//"`
if test "$so" = ".so"
then
continue
fi
ed - $file >> $TMPDIR/fref$dir <<!
/FILES/
+,/\.SH/-p
q
!
done
cd $TMPDIR
date > badfref$dir
echo >> badfref$dir
grep "/" fref$dir > /dev/null
if test $? -eq 1
then
rm -f fref$dir
continue
fi
echo "\\t ," >> fref$dir
ed - fref$dir <<!
1,\$s/ /\\
/g
1,\$s/ /\\
/g
1,\$s/,/\\
/g
v/\//d
g/:$/s///
g/\\\\(\*/s///g
g/\\\\s+1/s///g
g/\\\\s-1/s///g
g/\\\\s0/s///g
g/\\\\f./s///g
g/\\\\\*S/s///g
g/\\\\\&/s///g
g/\$\$/s//*/
g/^?/d
g/^\./d
g/tmp/d
g/spool/d
g/mail/d
g/^[^\/]/d
g/(/d
g/)/d
g/\'/d
g/\`/d
g/\"/d
g/\&/d
g/\|/d
1,\$s/^/ls /
w
q
!
sort fref$dir | uniq > tmp.$$
sh tmp.$$ > fref$dir 2>&1
grep "not found" fref$dir | sed "s/ not found//" >> badfref$dir
rm -f tmp.$$ fref$dir
done

View File

@ -1,73 +0,0 @@
#! /bin/sh
set x $*
. ./.param
trap "rm -f $TMPDIR/*$$; exit;" 2
for sec in $DIRLST
do
/bin/ls $MANDIR/man$sec > $TMPDIR/man${sec}$$
done
for sec in $DIRLST
do
cd $MANDIR/man$sec
dt=`date`
echo "$dt\n" > $TMPDIR/not.one.line$sec
echo "$dt\n" > $TMPDIR/name.order$sec
echo "$dt\n" > $TMPDIR/file.match$sec
echo "$dt\n" > $TMPDIR/no.TH$sec
echo "$dt\n" > $TMPDIR/no.NAME$sec
while read file
do
so=`line < $file | sed "s/ .*$//"`
if test "$so" = ".so"
then
continue
fi
grep "^.SH NAME" $file > /dev/null
if test $? -eq 1
then
echo $file >> $TMPDIR/no.NAME$sec
continue
fi
grep "^.SH SYNOPSIS" $file > /dev/null
if test $? -eq 0
then
lines=`cat $file | sed -n "/\.SH NAME/,/\.SH SYNOP/p" | wc -l | sed "s/ //g"`
else
lines=`cat $file | sed -n "/\.SH NAME/,/\.SH DESCR/p" | wc -l | sed "s/ //g"`
fi
if test $lines -gt 3
then
echo $file >> $TMPDIR/not.one.line$sec
continue
fi
th=`grep "^.TH" $file | line`
if test -z "$th"
then
echo $file >> $TMPDIR/no.TH$sec
continue
fi
set $th
name=`echo $2 | tr [A-Z] [a-z]`
suf=`echo $3 | tr [A-Z] [a-z]`
fname="${name}.$suf"
if test $fname != $file
then
echo $file >> $TMPDIR/file.match$sec
fi
ed - $file > $TMPDIR/tmp.$$ <<!
/^.SH NAME/+p
q
!
nname=`cat $TMPDIR/tmp.$$ | sed -e "s/ .*//" -e "s/,.*//"`
rm -f $TMPDIR/tmp.$$
if test $name != $nname
then
echo $file >> $TMPDIR/name.order$sec
fi
done < $TMPDIR/man${sec}$$
done
rm -f $TMPDIR/*$$

View File

@ -1,46 +0,0 @@
#! /bin/sh
set x $*
. ./.param
for dir in $DIRLST
do
> $TMPDIR/tmp.$$
date > $TMPDIR/badso$dir
echo >> $TMPDIR/badso$dir
date > $TMPDIR/needso$dir
echo >> $TMPDIR/needso$dir
cd $MANDIR/man$dir
for file in $FILLST
do
ln=`line < $file`
so=`echo $ln | sed "s/ .*//"`
if test "$so" = ".so"
then
so=`echo $ln | sed -e "s/.so//" -e "s/^/ls/"`
echo $so >> $TMPDIR/tmp.$$
else
ed - $file > $TMPDIR/tmp2.$$ <<!
/^\.SH NAME/+s/ .-.*//p
q
!
name=`line < $TMPDIR/tmp2.$$`
echo $name | grep "," > /dev/null
if test $? -eq 0
then
name=`echo $name | sed "s/,/ /g"`
for ent in $name
do
if test $ent = `echo $file | sed "s/\..*//"`
then
continue
fi
ls $MANDIR/man$dir/$ent.* 2>&1 | grep "not found" >> $TMPDIR/needso$dir
done
fi
fi
done
cd $TMPDIR
sh tmp.$$ 2>&1 | grep "not found" >> badso$dir
rm -f tmp.$$ tmp2.$$
done

View File

@ -1,23 +0,0 @@
#! /bin/sh
set x $*
. ./.param
TOOLS=$MANDIR/tools
date > $TMPDIR/sp.errs
echo >> $TMPDIR/sp.errs
for dir in $DIRLST
do
cd $MANDIR/man$dir
echo "cat <<'EOF' >----------------" >> $TMPDIR/sp.errs
echo "Section $dir" >> $TMPDIR/sp.errs
for file in $FILLST
do
spell $file >> $TMPDIR/tmp.$$
done
sort $TMPDIR/tmp.$$ | uniq | comm -23 - $TOOLS/sp.ignore >> $TMPDIR/sp.errs
> $TMPDIR/tmp.$$
done
rm -f $TMPDIR/tmp.$$

View File

@ -1,891 +0,0 @@
&
&.
+
+.
-
-.
0
0.
1
1.
1.0
1.0.
1.1
1.1.
10
10.
2
2.
3
3.
4
4.
5
5.
6
6.
7
7.
8
8.
9
9.
;
A.
B.
C.
D.
E.
F.
G.
H.
I.
J.
K.
L.
M.
MERT
MERT.
N.
O.
P.
Q.
S.
T.
U.
UNIX
UNIX.
UNIX/RT
UNIX/RT.
UNIX/TS
UNIX/TS.
V.
W.
X.
Y.
Z.
\s
\s-1
\s-1.
\s-2
\s-2.
\s.
\s0
\s0.
a
a.
about
about.
above
above.
across
across.
act
act.
action
action.
actions
actions.
after
after.
again
again.
against
against.
ago
ago.
air
air.
al.
all
all.
almost
almost.
along
along.
already
already.
also
also.
although
although.
always
always.
american
american.
among
among.
an
an.
and
and.
another
another.
any
any.
anything
anything.
are
are.
area
area.
areas
areas.
around
around.
asked
asked.
at
at.
available
available.
away
away.
be
be.
became
became.
because
because.
become
become.
been
been.
before
before.
began
began.
behind
behind.
being
being.
best
best.
better
better.
between
between.
big
big.
board
board.
boards
boards.
bodies
bodies.
body
body.
both
both.
boy
boy.
boys
boys.
brought
brought.
business
business.
businesses
businesses.
but
but.
by
by.
called
called.
came
came.
can
can.
cannot
cannot.
car
car.
cars
cars.
case
case.
cases
cases.
certain
certain.
change
change.
changes
changes.
come
come.
could
could.
course
course.
courses
courses.
day
day.
days
days.
development
development.
did
did.
didn't
didn't.
different
different.
do
do.
does
does.
don't
don't.
done
done.
door
door.
down
down.
during
during.
each
each.
early
early.
economic
economic.
either
either.
end.
ends
ends.
enough
enough.
even
even.
ever
ever.
every
every.
example
example.
examples
examples.
experience
experience.
eyes
eyes.
face
face.
facilities
facilities.
facility
facility.
fact
fact.
facts
facts.
families
families.
family
family.
far
far.
federal
federal.
feet
feet.
felt
felt.
few
few.
field
field.
fields
fields.
first
first.
five
five.
for
for.
force
force.
forces
forces.
found
found.
four
four.
free.
gave
gave.
general
general.
get.
give
give.
given
given.
go
go.
going
going.
good
good.
got
got.
government
government.
great
great.
had
had.
half
half.
hand
hand.
hands
hands.
has
has.
have
have.
having
having.
he
he.
head
head.
heads
heads.
heard
heard.
held
held.
her
her.
here
here.
high
high.
him
him.
himself
himself.
his
his.
history
history.
house
house.
houses
houses.
how
how.
however
however.
human
human.
i
i'm
i'm.
i.
if
if.
important
important.
in
in.
individual
individual.
information
information.
interest
interest.
into
into.
is
is.
it
it's
it's.
it.
its
its.
itself
itself.
job
job.
jobs
jobs.
just
just.
keep
keep.
kind
kind.
knew
knew.
know
know.
known
known.
large
large.
last
last.
later
later.
law
law.
least
least.
left
left.
less
less.
let
let.
life
life.
light
light.
like
like.
little
little.
local
local.
look
look.
looked
looked.
made
made.
major
major.
making
making.
many
many.
matter
matter.
matters
matters.
may
may.
me
me.
means
means.
member
member.
members
members.
men
men.
might
might.
mind
mind.
miscellaneous
miscellaneous.
miscellany
miscellany.
miss
miss.
moment
moment.
money
money.
more
more.
most
most.
mr
mr.
mrs
mrs.
much
much.
must
must.
my
my.
name
name.
names
names.
national
national.
need
need.
needs
needs.
never
never.
new
new.
next
next.
night
night.
no
no.
not
not.
nothing
nothing.
now
now.
number
number.
numbers
numbers.
of
of.
off
off.
office
office.
often
often.
old
old.
on
on.
once
once.
one
one.
only
only.
or
or.
order
order.
orders
orders.
other
other.
others
others.
our
our.
out
out.
over
over.
own
own.
part
part.
parts
parts.
past
past.
people
people.
per
per.
perhaps
perhaps.
period
period.
periods
periods.
place
place.
point
point.
points
points.
political
political.
position
position.
positions
positions.
possible
possible.
power
power.
present
present.
probably
probably.
problem
problem.
problems
problems.
procedure
procedure.
procedures
procedures.
program
program.
programs
programs.
public
public.
put
put.
question
question.
quite
quite.
rather
rather.
real
real.
really
really.
reason
reason.
result
result.
results
results.
right
right.
room
room.
said
said.
same
same.
saw
saw.
say
say.
school
school.
schools
schools.
second
second.
see
see.
seemed
seemed.
seems
seems.
seen
seen.
sense
sense.
service
service.
services
services.
set
set.
several
several.
shall
shall.
she
she.
should
should.
show
show.
side
side.
since
since.
small
small.
so
so.
social
social.
society
society.
some
some.
something
something.
special
special.
state
state.
states
states.
still
still.
street
street.
study
study.
such
such.
sure
sure.
system
system.
systems
systems.
taken
taken.
than
than.
that
that.
the
the.
their
their.
them
them.
themselves
themselves.
then
then.
there
there.
these
these.
they
they.
thing
thing.
things
things.
think
think.
this
this.
those
those.
though
though.
thought
thought.
three
three.
through
through.
thus
thus.
to
to.
today
today.
together
together.
told
told.
too
too.
took
took.
toward
toward.
towards
towards.
turn
turn.
turned
turned.
turns
turns.
two
two.
under
under.
united
united.
until
until.
up
up.
upon
upon.
us
us.
use
use.
used
used.
very
very.
want
want.
war
war.
wars
wars.
was
was.
water
water.
waters
waters.
way
way.
ways
ways.
we
we.
week
week.
weeks
weeks.
well
well.
went
went.
were
were.
what.
when
when.
where
where.
whether
whether.
which
which.
while
while.
white
white.
whole
whole.
whose
whose.
why
why.
will
will.
with
with.
within
within.
without
without.
word
word.
words
words.
work
work.
world
world.
would
would.
year
year.
years
years.
yet
yet.
york
york.
you
you.
young
young.
your
your.

View File

@ -1,43 +0,0 @@
/* @(#)line.c 1.1 */
/*
This program reads a single line from the standard input
and writes it on the standard output. It is probably most useful
in conjunction with the Bourne shell.
*/
#define LSIZE 512
int EOF;
char nl = '\n';
main()
{
register char c;
char line[LSIZE];
register char *linep, *linend;
EOF = 0;
linep = line;
linend = line + LSIZE;
while ((c = readc()) != nl)
{
if (linep == linend)
{
write (1, line, LSIZE);
linep = line;
}
*linep++ = c;
}
write (1, line, linep-line);
write(1,&nl,1);
if (EOF == 1) exit(1);
exit (0);
}
readc()
{
char c;
if (read (0, &c, 1) != 1) {
EOF = 1;
return(nl);
}
else
return (c);
}

View File

@ -1,13 +0,0 @@
set x $*
. ./.param
date > $TMPDIR/list
echo >> $TMPDIR/list
for dir in $DIRLST
do
cd $MANDIR/man$dir
echo "cat <<'EOF' >----------" >> $TMPDIR/list
echo "Section $dir" >> $TMPDIR/list
ls -ldas .* $FILLST >> $TMPDIR/list
done

View File

@ -1,76 +0,0 @@
set x $*
. ./.param
if test -z "$ID"
then
DIR2=/usr/nman
else
DIR2=$ID
fi
if test ! -d $DIR2
then
echo "mcmp: $DIR2 - not a directory"
exit
fi
for dir in $DIRLST
do
date > $TMPDIR/tmp3.$$
echo >> $TMPDIR/tmp3.$$
cd $MANDIR/man$dir
echo "Comparison of $MANDIR/man$dir and $DIR2/man$dir:">>$TMPDIR/tmp3.$$
echo >> $TMPDIR/tmp3.$$
ls $FILLST > $TMPDIR/tmp1.$$
cd $DIR2/man$dir
ls $FILLST > $TMPDIR/tmp2.$$
cd $MANDIR/man$dir
echo "Files found in $MANDIR/man$dir only:" >> $TMPDIR/tmp3.$$
comm -23 $TMPDIR/tmp1.$$ $TMPDIR/tmp2.$$ | sed "s/^/ /" >> $TMPDIR/tmp3.$$
echo >> $TMPDIR/tmp3.$$
echo "Files found in $DIR2/man$dir only:" >> $TMPDIR/tmp3.$$
comm -13 $TMPDIR/tmp1.$$ $TMPDIR/tmp2.$$ | sed "s/^/ /" >> $TMPDIR/tmp3.$$
echo >> $TMPDIR/tmp3.$$
comm -12 $TMPDIR/tmp1.$$ $TMPDIR/tmp2.$$ > $TMPDIR/tmp.$$
rm -f $TMPDIR/tmp1.$$ $TMPDIR/tmp2.$$
if [ ! -s $TMPDIR/tmp.$$ ]
then
echo "No common files for comparison" >> $TMPDIR/tmp3.$$
if [ -n "$LFLAG" ]
then
mv $TMPDIR/tmp3.$$ $TMPDIR/diff$dir
else
mv $TMPDIR/tmp3.$$ $TMPDIR/cmp$dir
fi
continue
fi
if [ -n "$LFLAG" ]
then
mv $TMPDIR/tmp3.$$ $TMPDIR/diff$dir
echo "Diffs of common files ($MANDIR=< $DIR2=>):" >> $TMPDIR/diff$dir
else
mv $TMPDIR/tmp3.$$ $TMPDIR/cmp$dir
echo "Files that differ:" >> $TMPDIR/cmp$dir
fi
while read file
do
if [ -z "$LFLAG" ]
then
cmp -s $file $DIR2/man$dir/$file
if [ $? -ne 0 ]
then
echo "\\t$file" >> $TMPDIR/cmp$dir
fi
else
diff $file $DIR2/man$dir/$file > $TMPDIR/tmp1.$$
if [ $? -eq 1 ]
then
echo "\\n\\t****$file****" >> $TMPDIR/diff$dir
cat $TMPDIR/tmp1.$$ >> $TMPDIR/diff$dir
fi
fi
done < $TMPDIR/tmp.$$
rm -f $TMPDIR/tmp1.$$
done
rm -f $TMPDIR/tmp.$$

View File

@ -1,23 +0,0 @@
#!/bin/sh
#
# $FreeBSD$
MANDIR=/usr/share/man
TMPDIR=/usr/share/man/tmp
date > $TMPDIR/greps
echo "Grep list: $*" >> $TMPDIR/greps
echo >> $TMPDIR/greps
for pattern in $*
do
echo "\n================" >> $TMPDIR/greps
echo "$pattern:" >> $TMPDIR/greps
for dir in 1 2 3 4 5 6 7 8
do
cd $MANDIR/man$dir
echo "cat <<'EOF' >---------------" >> $TMPDIR/greps
echo "Section $dir" >> $TMPDIR/greps
grep $pattern *.* >> $TMPDIR/greps
done
done

View File

@ -1,3 +0,0 @@
vadvise(2)
vplot(1)
vsort(1)

View File

@ -1,42 +0,0 @@
set x $*
. ./.param
for dir in $DIRLST
do
cd $MANDIR/man$dir
for file in $FILLST
do
so=`line < $file | sed "s/ .*//"`
if test "$so" = ".so"
then
continue
else
ed - $file > $TMPDIR/tmp.$$ <<!
/^\.SH NAME/+s/ .-.*//p
q
!
name=`line < $TMPDIR/tmp.$$`
echo $name | grep "," > /dev/null
if test $? -eq 0
then
name=`echo $name | sed "s/,/ /g"`
for ent in $name
do
if test $ent = `echo $file | sed "s/\..*//"`
then
continue
fi
suf=`echo $file | sed "s/.*\.\(.\{1,2\}\)\$/\1/"`
if test ! -f $ent.$suf
then
cat > $ent.$suf <<!
.so $MANDIR/man$dir/$file
!
fi
done
fi
fi
done
rm -f tmp.$$
done

View File

@ -1,26 +0,0 @@
set x $*
. ./.param
for dir in $DIRLST
do
date > $TMPDIR/mlog$dir
echo >> $TMPDIR/mlog$dir
cd $MANDIR/man$dir
for file in $FILLST
do
so=`line < $file | sed "s/ .*//"`
if test "$so" = ".so"
then
echo "$file: .so link -- ignored" >> $TMPDIR/mlog$dir
continue
fi
echo "$file:" >> $TMPDIR/mlog$dir
file=`echo $file | sed "s/\..\{1,2\}\$//"`
if test -z "$PFLAG"
then
man -t $dir $file
else
man -s $dir $file
fi
done
done

File diff suppressed because it is too large Load Diff

View File

@ -1,34 +0,0 @@
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/file.h>
main(argc, argv)
char *argv[];
{
struct stat sb;
register char *cp;
int i, fd, count = 0;
char buf[10];
for (cp = "", i = 1; i < argc; cp = " ", i++) {
if (lstat(argv[i], &sb) < 0)
continue;
if ((sb.st_mode & S_IFMT) != S_IFREG)
continue;
fd = open(argv[i], O_RDONLY);
if (fd < 0) {
perror(argv[i]);
continue;
}
if (read(fd, buf, 3) != 3) {
close(fd);
continue;
}
if (strncmp(buf, ".so", 3))
count++, printf("%s%s", cp, argv[i]);
close(fd);
}
if (count > 0)
putchar('\n');
}

View File

@ -1,34 +0,0 @@
#include <stdio.h>
#define T_INIT 0100
#define T_STOP 0111
long charin; /* number of input character */
main(argc, argv)
char **argv;
{
int npages = 0;
register int c;
while((c=getchar()) != EOF) {
charin++;
c &= 0377;
if(c != T_INIT)
continue;
else {
c=getchar();
c &= 0377;
if(c == T_STOP) {
npages++;
charin++;
}
}
}
if(charin<5) {
fprintf(stderr, "%s: no input\n", argv[0]);
exit(1);
}
printf("%d\n", npages);
}

View File

@ -1,92 +0,0 @@
set x $*
. ./.param
PATH=$PATH:$MANDIR/tools
sm=
if test "$PFLAG" -eq 1
then
sm="-rs1"
fi
for dir in $DIRLST
do
cd $MANDIR/man$dir
date > $TMPDIR/pages$dir
echo >> $TMPDIR/pages$dir
for file in $FILLST
do
prep="cat $file |"
first=`line < $file`
case "$first" in
.so*) continue
;;
\'\\\"*)
option=`expr "$first" : '.* \(.*\)'`
case "$option" in
c)
prep="${prep} cw |"
;;
e)
prep="${prep} eqn |"
;;
t)
prep="${prep} tbl |"
;;
ce | ec)
prep="${prep} cw | eqn"
;;
ct | tc)
prep="${prep} cw | tbl |"
;;
et | te)
prep="${prep} tbl | eqn |"
;;
cet | cte | ect | etc | tce | tec)
prep="${prep} cw | tbl | eqn |"
;;
esac
;;
*)
;;
esac
numb=`eval ${prep} troff -man $sm -s -f -t | pages`
echo "$file $numb" >> $TMPDIR/pages$dir
done
done
tsum=0
cd $TMPDIR
date > totalpgs
echo >> totalpgs
for dir in $DIRLST
do
ed - pages$dir <<!
1,2d
w tmp1.$$
q
!
sum=0
while read val
do
val=`echo $val | sed "s/.* / /"`
sum=`expr $sum + $val`
if test $? -eq 2
then
echo "pgcnt: error in summing - sum is $sum, val is $val"
exit
fi
echo $sum > tmp.$$
done < tmp1.$$
sumt=`line < tmp.$$`
echo "total pages Section $dir -- $sumt" >> totalpgs
tsum=`expr $tsum + $sumt`
done
echo >> totalpgs
echo >> totalpgs
echo "total pages -- $tsum" >> totalpgs
rm tmp.$$ tmp1.$$

View File

@ -1,22 +0,0 @@
#! /bin/sh
set x $*
. ./.param
for dir in $DIRLST
do
date > $TMPDIR/names$dir
echo >> $TMPDIR/names$dir
cd $MANDIR/man$dir
for file in $FILLST
do
so=`line < $file | sed "s/ .*//"`
if test "$so" = ".so"
then
continue
fi
ed - $file >> $TMPDIR/names$dir <<!
/^.SH NAME/+
q
!
done
done

View File

@ -1,26 +0,0 @@
#! /bin/sh
set x $*
. ./.param
for dir in $DIRLST
do
date > $TMPDIR/synops$dir
echo >> $TMPDIR/synops$dir
cd $MANDIR/man$dir
for file in $FILLST
do
so=`line < $file | sed "s/ .*//"`
if test "$so" = ".so"
then
continue
fi
nroff -man $file > $TMPDIR/tmp.$$
echo "$file:" >> $TMPDIR/synops$dir
ed - $TMPDIR/tmp.$$ >> $TMPDIR/synops$dir <<!
/SYNOPSIS/;+,/^ [A-Z][A-Z][A-Z][A-Z]/-p
q
!
done
done
rm -f $TMPDIR/tmp.$$

File diff suppressed because it is too large Load Diff

View File

@ -1,118 +0,0 @@
#!/bin/sh
#
# $FreeBSD$
MANDIR=/usr/share/man
TMPDIR=/usr/share/man/tmp
TOOLS=$MANDIR/tools
trap "rm $TMPDIR/tmp.$$ ; exit" 2 3 15
P=108
p=""
if test "$1" = "-p"
then
P=65
p=-p
shift
fi
if test $# -eq 0
then
echo "tocrc: no argument"
exit
fi
if test $# -eq 2
then
: create toc input file for one section only
> $TMPDIR/tocx$1
for file in $MANDIR/man$1/*.$1*
do
if test ! -s $file
then
continue
fi
so=`line < $file | sed "s/ .*//"`
if test "$so" = ".so"
then
continue
fi
ed - $file > $TMPDIR/tmp.$$ <<!
H
/^\.TH/p
q
!
loc=`cat $TMPDIR/tmp.$$ | sed "s/.*local.*/local/"`
if test "$loc" = "local"
then
continue
fi
name=`basename $file`
name=`echo $name | sed "s/\.\(.\{1,2\}\)\$/(\1)/"`
ed - $file > $TMPDIR/tmp.$$ <<!
/^.SH NAME/+p
q
!
desc=`line < $TMPDIR/tmp.$$`
desc=`echo $desc | sed -e "s/.s-1//g" -e "s/.s0//g" -e "s/.s+1//g" -e "s/ .- /: /" -e "s/^/$name /" -e "s/$/./"`
if test -n "$desc"
then
echo $desc >> $TMPDIR/tocx$1
fi
rm -f $TMPDIR/tmp.$$
done
else case $1 in
all )
: tocx files for all sections and everything else
for x in 1 2 3 4 5 6 7 8
do
$0 $p $x $x
done
$0 $p t
;;
t )
: permuted index and toc files
if test ! -f $TMPDIR/tocx1
then
echo "tocrc: some tocx? files missing"
exit
fi
cat $TMPDIR/tocx? > $TMPDIR/cattoc
ed - $TMPDIR/cattoc <<!
H
g/(1c)/s//(1C)/
g/(1m)/s//(1M)/
g/(1g)/s//(1G)/
g/(3c)/s//(3C)/
g/(3m)/s//(3M)/
g/(3s)/s//(3S)/
g/(3x)/s//(3X)/
g/"\."/d
w
q
!
ptx -r -t -b $TOOLS/break -f -w $P -i $TOOLS/ignore $TMPDIR/cattoc $MANDIR/man0/ptxx
for x in 1 2 3 4 5 6 7 8
do
ed - $TMPDIR/tocx$x << !
H
/^intro/m0
1,\$s/ .*://
1,\$s/.$//
1,\$s/([1-8][a-z]\{0,1\}) /" "/
1,\$s/.*/.xx "&"/
g/""/d
w $MANDIR/man0/toc$x
q
!
done
;;
* )
$0 $p $1 $1
;;
esac
fi