1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
XCOMM
XCOMM $XConsortium: Imakefile,v 1.2 91/07/25 19:51:27 hersh Exp $
XCOMM
XCOMM
$XCCOPY
XCOMM Copyright (c) 1990, 1991 by Sun Microsystems, Inc.
XCOMM
XCOMM All Rights Reserved
XCOMM
XCOMM Permission to use, copy, modify, and distribute this software and its
XCOMM documentation for any purpose and without fee is hereby granted,
XCOMM provided that the above copyright notice appear in all copies and that
XCOMM both that copyright notice and this permission notice appear in
XCOMM supporting documentation, and that the name of Sun Microsystems,
XCOMM not be used in advertising or publicity
XCOMM pertaining to distribution of the software without specific, written
XCOMM prior permission.
XCOMM
XCOMM SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
XCOMM INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
XCOMM EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
XCOMM CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
XCOMM USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
XCOMM OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
XCOMM PERFORMANCE OF THIS SOFTWARE.
PIC = pic
DOCBIN=..
XREF=$(DOCBIN)/xref
RECODE=$(DOCBIN)/recode
INDEXER=$(DOCBIN)/indexer
PEXMACROS=$(DOCBIN)/pex.macros
CHAPTERS = user_guide server_app.ug archive_app.ug
ALLFILES = cover.ug user_guide server_app.ug archive_app.ug
all: outline doc.PS index.PS cover.PS contents.PS tables.PS figures.PS
outline:
egrep -h '^\.(H|FN|TN)' $(CHAPTERS) > outline
doc.PS:
$(XREF) -o outline $(CHAPTERS) | $(PIC) | \
(cat $(PEXMACROS) ; $(TBL) ) | $(TROFF) -rF1 -rM1>doc.PS 2>slush.tmp
$(RECODE) < slush.tmp >slush.file
$(RM) slush.tmp
index.PS:
grep '^\.IE' slush.file | \
(cat $(PEXMACROS) ; echo .UH INDEX ; $(INDEXER)) | \
$(TROFF) -rF1 -rM1 -rP`tail -1 slush.file` >index.PS 2>> slush.file
contents.PS:
(cat $(PEXMACROS) ; echo .UH CONTENTS ; \
grep '^\.CE [CANU]' slush.file) | \
$(TROFF) -rF1 -rM1 -rP3 >contents.PS 2>>slush.file
tables.PS:
(cat $(PEXMACROS) ; echo .UH TABLES; grep '^\.CE T' slush.file) | \
$(TROFF) -rF1 -rM1 -rP`tail -1 slush.file` >tables.PS 2>>slush.file
figures.PS:
(cat $(PEXMACROS) ; echo .UH FIGURES; grep '^\.CE F' slush.file) | \
$(TROFF) -rF1 -rM1 -rP`tail -1 slush.file` >figures.PS 2>>slush.file
cover.PS:
$(TROFF) $(MSMACROS) cover.ug > cover.PS
clean::
$(RM) outline slush.tmp slush.file
$(RM) doc.PS index.PS cover.PS contents.PS tables.PS figures.PS
|