This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Populate metaconfig branch.
[metaconfig.git] / dist-3.0at70 / mcon / man / mxref.SH
CommitLineData
959f3c4c
JH
1case $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 ;;
13esac
14case "$0" in
15*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
16esac
17echo "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
51metaxref \- 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
58is a program that scans all the files in your MANIFEST file and produces
59three files which contains information about how the files in that MANIFEST
60reference items defined by metaconfig's unit files.
61.PP
62The first two files,
63.I I.fui
64and
65.I I.uif
66reference the \fIfile\fR, \fIunit\fR and \fIitems\fR sorted differently. The
67third file, \fIObsolete\fR, dumps all the known obsolete symbols, in which
68file they appear and the new symbol that should be used instead.
69.PP
70Note that obsolete symbols do not appear in the main cross-reference files,
71but are only listed in the \fIObsolete\fR file. That's yet another incentive
72to use the new symbols in your sources. :-)
73.SH OPTIONS
74.I Metaxref
75recognizes the following options:
76.TP 10
77.B \-d
78Turn on debug mode.
79.TP
80.B \-f\fI manifest\fR
81Use an alternate \fImanifest\fR file.
82.TP
83.B \-h
84Print help message and exit.
85.TP
86.B \-k
87Keep temporary \fI.MT\fR directory.
88.TP
89.B \-m
90Assume lots of memory and swap space. This will drastically improve the
91symbol lookup time in your source files, at the expense of memory usage.
92.TP
93.B \-s
94Turn on silent mode.
95.TP
96.B \-L\fI dir\fR
97Override default library location (where the \fIU\fR units directory
98can be found).
99.TP
100.B \-V
101Print version number and exit.
102.SH AUTHOR
103Harlan Stenn <harlan@mumps.pfcs.com>
104.SH FILES
105.TP 10
106.PD 0
107LIB/dist/mcon/U/*.U
108Public unit files.
109.TP
110U/*.U
111Private unit files
112.TP
113I.fui
114Lists information sorted by file, unit and item.
115.TP
116I.uif
117Lists information sorted by unit, item and file.
118.TP
119Obsolete
120Lists all the obsolete symbols used by the sources.
121.PD
122.sp
123.in +5
124where LIB is $privlibexp.
125.in -5
126.SH BUGS
127Metaxref will list among the wanted items all those magic symbols defined
128within units on the ?M: lines. Those are relevant only when metaconfig is
129invoked with the \fB\-M\fR option.
130.SH "SEE ALSO"
131metaconfig($manext), metalint($manext)
132!GROK!THIS!
133chmod 444 metaxref.$manext