Print this page
6205 onbld manuals should be declared as 1onbld
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Josef Sipek <jeffpc@josefsipek.net>

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/scripts/xref.1
          +++ new/usr/src/tools/scripts/xref.1onbld
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12  .\" " When distributing Covered Code, include this CDDL HEADER in each
  13   13  .\" " file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  14   14  .\" " If applicable, add the following below this CDDL HEADER, with the
  15   15  .\" " fields enclosed by brackets "[]" replaced with your own identifying
  16   16  .\" " information: Portions Copyright [yyyy] [name of copyright owner]
  17   17  .\" "
  18   18  .\" " CDDL HEADER END
  19   19  .\" "
  20   20  .\" "Copyright 2009 Sun Microsystems, Inc.  All rights reserved."
  21   21  .\" "Use is subject to license terms."
  22      -.TH xref 1 "10 Aug 2009"
       22 +.TH xref 1ONBLD "10 Aug 2009"
  23   23  .SH NAME
  24   24  .I xref
  25   25  \- build and maintain source cross-references
  26   26  .SH SYNOPSIS
  27   27  \fBxref [-cfp] [-m <makefile>] [-x cscope|ctags|etags[,...]] [<subtree> ...]\fP
  28   28  .LP
  29   29  .SH DESCRIPTION
  30   30  .IX "OS-Net build tools" "xref" "" "\fBxref\fP"
  31   31  .LP
  32   32  .I xref
  33   33  is a simple tool for building and maintaining source cross-references for
  34   34  subtrees of a workspace.  By default, xref builds cscope-fast, ctags, and
  35   35  etags (if available; see NOTES) source cross-references for all of the
  36   36  eligible files underneath each named subtree, plus any additional eligible
  37      -files reported by flg.flp(1).  File eligibility is determined by pattern
       37 +files reported by flg.flp(1ONBLD).  File eligibility is determined by pattern
  38   38  matching -- by default, files matching the following patterns are
  39   39  eligible:
  40   40  
  41   41          *.[Ccdshlxy] Makefile* *.il* *.cc llib-* *.xml *.dtd.* *.ndl
  42   42  
  43   43  However, this default behavior can be changed, either through command-line
  44   44  options or by setting the cross-reference customization macros (see
  45   45  \fICUSTOMIZATION MACROS\fP) in the Makefile rooted at each specified
  46   46  subtree.
  47   47  .LP
  48   48  Any number of subtrees can be specified; if no subtrees are specified,
  49   49  then the current working directory is assumed.  Relative subtrees are
  50   50  assumed to be relative to the current working directory.
  51   51  .SH OPTIONS
  52   52  .TP 10
  53   53  .B -c
  54   54  Clobber (rather than build) cross-references.
  55   55  .TP 10
  56   56  .B -f
  57      -Do not use flg.flp(1) to locate additional related files.  This option is
       57 +Do not use flg.flp(1ONBLD) to locate additional related files.  This option is
  58   58  ignored if \fB-c\fP is specified.
  59   59  .TP
  60   60  .B -m \fImakefile\fP
  61   61  Use the customization macros specified in \fImakefile\fP when building the
  62   62  cross-reference, rather than those in Makefile.  If no Makefile exists
  63   63  or no customizations are desired, then /dev/null may be used.
  64   64  .TP 10
  65   65  .B -p
  66   66  Remove any proto-area include directories from the include path list when
  67   67  building the cross-reference.  This is chiefly useful when the built
↓ open down ↓ 52 lines elided ↑ open up ↑
 120  120  Build cscope-fast, ctags, and etags cross-references for the subtree
 121  121  rooted at the current working directory:
 122  122  .LP
 123  123  $ xref
 124  124  .LP
 125  125  Build cscope-fast, ctags, and etags cross-references for $SRC/cmd/agents:
 126  126  .LP
 127  127  $ xref $SRC/cmd/agents
 128  128  .LP
 129  129  Build just the cscope-fast cross-reference for $SRC, and do not use
 130      -flg.flp(1) (since there are no additional source files to find):
      130 +flg.flp(1ONBLD) (since there are no additional source files to find):
 131  131  .LP
 132  132  $ xref -f -x cscope $SRC
 133  133  .LP
 134  134  Build just the standard cscope cross-reference for $SRC/uts:
 135  135  .LP
 136  136  $ CSCOPE=cscope CSFLAGS=-b xref -x cscope $SRC/uts
 137  137  .LP
 138  138  Build a cscope database containing just the ZFS source:
 139  139  .LP
 140  140  .nf
↓ open down ↓ 6 lines elided ↑ open up ↑
 147  147  .SH ENVIRONMENT VARIABLES
 148  148  Because xref uses xref.mk to carry out the requested operations and
 149  149  invokes make(1) with the -e option, the value of any macros used by
 150  150  xref.mk can be overridden through environment variables.  This is 
 151  151  chiefly useful for customizing the programs used to build the cross
 152  152  references; see \fIEXAMPLES\fP.
 153  153  .LP
 154  154  .SH SEE ALSO
 155  155  .LP
 156  156  .IR make(1),
 157      -.IR bringover(1),
 158      -.IR flg.flp(1)
      157 +.IR bringover(1ONBLD)
      158 +.IR flg.flp(1ONBLD)
 159  159  .SH NOTES
 160  160  The etags utility is no longer bundled with the Sun Studio, which
 161  161  means it may not be available on all developer systems.  If xref cannot
 162  162  locate the etags utility and the -x option has not been specified, then
 163  163  xref will silently not build etags.
 164  164  .LP
 165  165  The ETAGS environment variable can be used to specify an alternate
 166  166  path to the etags utility.  For instance, to use the one included with
 167  167  SUNWgnu-emacs, set ETAGS to /usr/gnu/bin/etags prior to invoking xref.
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX