Commit | Line | Data |
---|---|---|
959f3c4c JH |
1 | case $CONFIG in |
2 | '') | |
3 | if test -f config.sh; then TOP=.; | |
4 | elif test -f ../config.sh; then TOP=..; | |
5 | elif test -f ../../config.sh; then TOP=../..; | |
6 | elif test -f ../../../config.sh; then TOP=../../..; | |
7 | elif test -f ../../../../config.sh; then TOP=../../../..; | |
8 | else | |
9 | echo "Can't find config.sh."; exit 1 | |
10 | fi | |
11 | . $TOP/config.sh | |
12 | ;; | |
13 | esac | |
14 | case "$0" in | |
15 | */*) cd `expr X$0 : 'X\(.*\)/'` ;; | |
16 | esac | |
17 | echo "Extracting mcon/man/metaxref.$manext (with variable substitutions)" | |
18 | $rm -f metaxref.$manext | |
19 | $spitshell >metaxref.$manext <<!GROK!THIS! | |
20 | .TH METAXREF $manext "Version $VERSION PL$PATCHLEVEL" | |
21 | ''' @(#) Manual page for metaxref | |
22 | ''' | |
23 | ''' $Id: mxref.SH,v 3.0.1.4 1997/02/28 16:30:39 ram Exp $ | |
24 | ''' | |
25 | ''' Copyright (c) 1991-1993, Raphael Manfredi | |
26 | ''' | |
27 | ''' You may redistribute only under the terms of the Artistic Licence, | |
28 | ''' as specified in the README file that comes with the distribution. | |
29 | ''' You may reuse parts of this distribution only within the terms of | |
30 | ''' that same Artistic Licence; a copy of which may be found at the root | |
31 | ''' of the source tree for dist 3.0. | |
32 | ''' | |
33 | ''' $Log: mxref.SH,v $ | |
34 | ''' Revision 3.0.1.4 1997/02/28 16:30:39 ram | |
35 | ''' patch61: new -L option to match metaconfig and metalint | |
36 | ''' | |
37 | ''' Revision 3.0.1.3 1994/10/29 16:34:26 ram | |
38 | ''' patch36: the leading .TH was referring to metaconfig | |
39 | ''' | |
40 | ''' Revision 3.0.1.2 1993/10/16 13:52:46 ram | |
41 | ''' patch12: added BUGS section | |
42 | ''' | |
43 | ''' Revision 3.0.1.1 1993/08/19 06:42:25 ram | |
44 | ''' patch1: leading config.sh searching was not aborting properly | |
45 | ''' | |
46 | ''' Revision 3.0 1993/08/18 12:10:15 ram | |
47 | ''' Baseline for dist 3.0 netwide release. | |
48 | ''' | |
49 | ''' | |
50 | .SH NAME | |
51 | metaxref \- builds cross-reference file/unit/item information | |
52 | .SH SYNOPSIS | |
53 | .B metaxref | |
54 | [ \-\fBdhkmsV\fR ] [ \fB\-f\fI manifest\fR ] | |
55 | [ \-\fBL \fIdir\fR ] | |
56 | .SH DESCRIPTION | |
57 | .I Metaxref | |
58 | is a program that scans all the files in your MANIFEST file and produces | |
59 | three files which contains information about how the files in that MANIFEST | |
60 | reference items defined by metaconfig's unit files. | |
61 | .PP | |
62 | The first two files, | |
63 | .I I.fui | |
64 | and | |
65 | .I I.uif | |
66 | reference the \fIfile\fR, \fIunit\fR and \fIitems\fR sorted differently. The | |
67 | third file, \fIObsolete\fR, dumps all the known obsolete symbols, in which | |
68 | file they appear and the new symbol that should be used instead. | |
69 | .PP | |
70 | Note that obsolete symbols do not appear in the main cross-reference files, | |
71 | but are only listed in the \fIObsolete\fR file. That's yet another incentive | |
72 | to use the new symbols in your sources. :-) | |
73 | .SH OPTIONS | |
74 | .I Metaxref | |
75 | recognizes the following options: | |
76 | .TP 10 | |
77 | .B \-d | |
78 | Turn on debug mode. | |
79 | .TP | |
80 | .B \-f\fI manifest\fR | |
81 | Use an alternate \fImanifest\fR file. | |
82 | .TP | |
83 | .B \-h | |
84 | Print help message and exit. | |
85 | .TP | |
86 | .B \-k | |
87 | Keep temporary \fI.MT\fR directory. | |
88 | .TP | |
89 | .B \-m | |
90 | Assume lots of memory and swap space. This will drastically improve the | |
91 | symbol lookup time in your source files, at the expense of memory usage. | |
92 | .TP | |
93 | .B \-s | |
94 | Turn on silent mode. | |
95 | .TP | |
96 | .B \-L\fI dir\fR | |
97 | Override default library location (where the \fIU\fR units directory | |
98 | can be found). | |
99 | .TP | |
100 | .B \-V | |
101 | Print version number and exit. | |
102 | .SH AUTHOR | |
103 | Harlan Stenn <harlan@mumps.pfcs.com> | |
104 | .SH FILES | |
105 | .TP 10 | |
106 | .PD 0 | |
107 | LIB/dist/mcon/U/*.U | |
108 | Public unit files. | |
109 | .TP | |
110 | U/*.U | |
111 | Private unit files | |
112 | .TP | |
113 | I.fui | |
114 | Lists information sorted by file, unit and item. | |
115 | .TP | |
116 | I.uif | |
117 | Lists information sorted by unit, item and file. | |
118 | .TP | |
119 | Obsolete | |
120 | Lists all the obsolete symbols used by the sources. | |
121 | .PD | |
122 | .sp | |
123 | .in +5 | |
124 | where LIB is $privlibexp. | |
125 | .in -5 | |
126 | .SH BUGS | |
127 | Metaxref will list among the wanted items all those magic symbols defined | |
128 | within units on the ?M: lines. Those are relevant only when metaconfig is | |
129 | invoked with the \fB\-M\fR option. | |
130 | .SH "SEE ALSO" | |
131 | metaconfig($manext), metalint($manext) | |
132 | !GROK!THIS! | |
133 | chmod 444 metaxref.$manext |