case $CONFIG in '') if test -f config.sh; then TOP=.; elif test -f ../config.sh; then TOP=..; elif test -f ../../config.sh; then TOP=../..; elif test -f ../../../config.sh; then TOP=../../..; elif test -f ../../../../config.sh; then TOP=../../../..; else echo "Can't find config.sh."; exit 1 fi . $TOP/config.sh ;; esac case "$0" in */*) cd `expr X$0 : 'X\(.*\)/'` ;; esac echo "Extracting mcon/man/metalint.$manext (with variable substitutions)" $rm -f metalint.$manext $spitshell >metalint.$manext <' in comment line." A shell charcter like '>' or ';' was found on a : comment line, which is parsed by the shell, although not executed. Therefore, those symbols are dangerous and can cause weird behaviour, and should be avoided if possible. .TP "unmatched single quote in comment line." The : comment line is parsed by the shell, so any unmatched quote will result in having a chunk of the produced Configure script ignored at interpretation time, causing trouble at best. A similar message will be issued for unmatched double quotes. .TP "C symbol 'xxx' is defined in the following units:" The C symbol is defined in more that one unit. Offending units are listed. .TP "Shell symbol 'xxx' is defined in the following units:" A shell symbol is defined in more than one unit. Offending units folllow. .TP "Shell symbol 'xxx' is altogether:" A shell symbol is defined by some units, obsoleted by others and used as a temporary. .TP "Shell symbol 'xxx' is both defined and obsoleted:" Self explainatory. .TP "Shell symbol 'xxx' is both defined and used as temporary:" Self explainatory. .TP "Shell symbol 'xxx' obsoleted also used as temporary:" Self explainatory. .TP "definition of '\$xxx' not closed by '?S:.'." Self explainatory. .TP "definition of 'XXX' not closed by '?C:.'." Self explainatory. .TP "magic definition of 'xxx' not closed by '?M:.'." Self explainatory. .TP "variable '\$xxx' is defined externally." A variable defined externally (i.e. in another unit) is used, without proper dependency information. Use the \fIextern\fR lint hint to suppress this message. .TP "file 'xxx' was not created." A file listed as a private UU file is not created by the special unit. Creation is detected by seing an explicit shell redirection to the file, not by an implicit creation (such as a C compilation would for instance). All special units should create only shell scripts explicitely anyway so this message cannot be suppressed via a lint hint. .TP "local file 'xxx' may override the one set by 'unit.U'." You are attempting to create a local file, but the special unit creates one bearing the exact same name and should it be loaded before within \fIConfigure\fR, you would override that file. Change the name of your local file. .TP "unused temporary file 'xxx'. The file was declared on the ?F: line but does not appear to be used anywhere. .TP "mis-used temporary file 'xxx'. A local temporary file has been declared on the ?F: line and is used in a way that may not be the proper one. Indeed, all such local files should be called with an explicit relative path, to avoid PATH lookups which could get you another file. .TP "you might not always get file 'xxx' from 'unit.U'." You seem to be calling the specified file, but not by using an explicit relative pathname. Relying on the PATH to find this file is not safe. To fix this problem, call your file using somthing like \fI./xxx\fR. .TP "missing Unit from ?MAKE for private file 'xxx'." You are using a private UU file without listing the special unit that produces it in your dependency line. Add the unit to your dependency list. .TP "unknown private file 'xxx'." The file does not appear on any ?F: line; however it should. .TP "File 'xxx' is defined in the following units:" The listed units cannot seem to agree on who is defining the file. .TP "Cycle found for:" There is a dependency cycle found for the symbols listed. Only the symbols involved in the cycle are listed. .TP "Cycle involves:" An exerpt of the dependencies where the cycle was found is listed. This may involve far more symbols than the previous message, because \fImetalint\fR actually rescans the rules to emphasize the cycle and stops whenever it has found one, i.e. it does not try to minimize it (the cycle is found using another algorithm, which unfortunately cannot spit it out but only say for sure there is one). .SH REFERENCE .I Metalint uses the following control lines, which are otherwise ignored by \fImetaconfig\fR: .TP 5 ?V:\fIread-only symbols\fR:\fIread-write symbols\fR This line should be used only in special units. It lists all the shell variable defined by the unit which should not be used directly as dependencies by other units: they must include this special unit in their dependency list if they make use of any of the symbols described here. Those can be viewed as exported symbols which you inherit from when depending from the unit. Symbols may be exported read-only or read-write. .TP ?F:\fIfiles created\fR This line serves two purposes: it is a \fImetalint\fR hint, and also a placeholder for future \fIjmake\fR use. It must list three kind of files: the temporary one which are created for a test, the private UU ones created in the UU directory for later perusal, and the public ones left in the root directory of the package. Temporary files must be listed with a preceding '!' character (meaning "no! they're not re-used later!"), private UU files should be preceded by a './' (meaning: to use them, say \fI./file\fR, not just \fIfile\fR), and public ones should be named as-is. .TP ?T:\fIshell temporaries\fR This line should list all the shell variables used as temporaries within the unit's body. This line should be kept accurate, and prevents you from writing a unit defining a symbol which would be used as a scratch variable in another unit... .TP ?LINT:\fIkeyword\fR \fIsymbol_list\fR Specifies a lint hint. The following keywords are available: .RS +10 .TP 15 .PD 0 .I change shell variable ok to be changed .TP .I create persistent file ok to be created by non-special unit .TP .I define shell variables listed are defined in this unit .TP .I describe listed shell variables are described by ?S: .TP .I extern variable known to be externally defined .TP .I empty unit file is empty and kept only as a placeholder. .TP .I known listed C variables are described .TP .I set listed variables are set .TP .I use variables listed are used by this unit .PD .RS -10 .SH AUTHORS Harlan Stenn wrote the first version, based on Larry Wall's \fImetaconfig\fR from dist 2.0. .br Raphael Manfredi rewrote it from scratch for 3.0 with a few enhancements. .SH FILES .TP 10 .PD 0 LIB/dist/mcon/U/*.U Public unit files .TP U/*.U Private unit files .PD .sp .in +5 where LIB is $privlibexp. .in -5 .SH BUGS Maybe. .SH "SEE ALSO" metaconfig($manext), metaxref($manext) !GROK!THIS! chmod 444 metalint.$manext