Print this page
6282 ONBLD man pages not pbchk clean
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Josef Sipek <jeffpc@josefsipek.net>

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/scripts/xref.1onbld
          +++ 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 1ONBLD "10 Aug 2009"
       22 +.TH XREF 1ONBLD "Aug 10, 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      -.LP
  29   28  .SH DESCRIPTION
  30      -.IX "OS-Net build tools" "xref" "" "\fBxref\fP"
  31   29  .LP
  32   30  .I xref
  33   31  is a simple tool for building and maintaining source cross-references for
  34   32  subtrees of a workspace.  By default, xref builds cscope-fast, ctags, and
  35   33  etags (if available; see NOTES) source cross-references for all of the
  36   34  eligible files underneath each named subtree, plus any additional eligible
  37   35  files reported by flg.flp(1ONBLD).  File eligibility is determined by pattern
  38   36  matching -- by default, files matching the following patterns are
  39   37  eligible:
  40   38  
       39 +.nf
  41   40          *.[Ccdshlxy] Makefile* *.il* *.cc llib-* *.xml *.dtd.* *.ndl
       41 +.fi
  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
↓ open down ↓ 84 lines elided ↑ open up ↑
 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
 141  141  $ cd $SRC
 142  142  $ cat > /tmp/zfs.mk
 143  143  XRDIRS=uts/common/fs/zfs common/zfs lib/libzfs cmd/zfs cmd/zpool
 144  144  .fi
 145  145  $ xref -f -x cscope -m /tmp/zfs.mk
 146      -.LP
 147  146  .SH ENVIRONMENT VARIABLES
 148  147  Because xref uses xref.mk to carry out the requested operations and
 149  148  invokes make(1) with the -e option, the value of any macros used by
 150      -xref.mk can be overridden through environment variables.  This is 
      149 +xref.mk can be overridden through environment variables.  This is
 151  150  chiefly useful for customizing the programs used to build the cross
 152  151  references; see \fIEXAMPLES\fP.
 153      -.LP
 154  152  .SH SEE ALSO
 155  153  .LP
 156  154  .IR make(1),
 157  155  .IR bringover(1ONBLD)
 158  156  .IR flg.flp(1ONBLD)
 159  157  .SH NOTES
 160  158  The etags utility is no longer bundled with the Sun Studio, which
 161  159  means it may not be available on all developer systems.  If xref cannot
 162  160  locate the etags utility and the -x option has not been specified, then
 163  161  xref will silently not build etags.
 164  162  .LP
 165  163  The ETAGS environment variable can be used to specify an alternate
 166  164  path to the etags utility.  For instance, to use the one included with
 167  165  SUNWgnu-emacs, set ETAGS to /usr/gnu/bin/etags prior to invoking xref.
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX