Print this page
8564 developer/build/onbld shouldn't require ghostscript
Reviewed by: Alexander Pyhalov <apyhalov@gmail.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/scripts/webrev.1onbld
          +++ new/usr/src/tools/scripts/webrev.1onbld
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14  .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  .\" If applicable, add the following below this CDDL HEADER, with the
  16   16  .\" fields enclosed by brackets "[]" replaced with your own identifying
  17   17  .\" information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  .\"
  19   19  .\" CDDL HEADER END
  20   20  .\"
  21   21  .\" Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  22   22  .\" Use is subject to license terms.
  23   23  .\"
       24 +.\" Copyright 2019 Joyent, Inc.
  24   25  .\"
  25      -.TH WEBREV 1ONBLD "Mar 27, 2016"
       26 +.TH WEBREV 1ONBLD "Aug 2, 2019"
  26   27  .SH NAME
  27   28  webrev \- Generate HTML codereview materials
  28   29  .SH SYNOPSIS
  29   30  .B webrev
  30   31  [
  31   32  .I common-options
  32   33  ]
  33   34  
  34   35  .B webrev
  35   36  [
↓ open down ↓ 23 lines elided ↑ open up ↑
  59   60  In which case \fBwebrev\fR attempts to figure out the list of files
  60   61  for review.  If that fails, or if more control
  61   62  over the set of files is needed, a \fIfile list\fR may be specified.
  62   63  \fBwebrev\fR also attempts to deduce a
  63   64  .I basis for comparison
  64   65  (interchangeably called the \fIparent\fR, but see SCM INTERACTIONS below).
  65   66  A basis for comparison is needed in order to determine the differences
  66   67  introduced by the code changes under review.
  67   68  
  68   69  By default, \fBwebrev\fR creates a \fIwebrev\fR directory in the
  69      -workspace directory that contains the generated HTML files, a generated
  70      -PDF review, and a patch representing the changes.  It also places a
  71      -copy of the file list in that directory, and of both the old and new
  72      -raw files in the \fB$webrev_root/raw_files\fR directory.
       70 +workspace directory that contains the generated HTML files, and a patch
       71 +representing the changes.  It also places a copy of the file list in
       72 +that directory, and of both the old and new raw files in the
       73 +\fB$webrev_root/raw_files\fR directory.
  73   74  To output the webrev somewhere other than the default location, use the
  74   75  \fI-o <outdir>\fR option, or set the \fBWDIR\fR environment variable.
  75   76  For example:
  76   77  .nf
  77   78          $ webrev -o ~/public_html/myreview/
  78   79  .fi
  79   80  .PP
  80   81  In the index file, each file is listed on a line with a link to the
  81   82  relevant review materials.  Comments for each change will be included
  82   83  automatically.  Cross references to bug (or other information) tracking
↓ open down ↓ 18 lines elided ↑ open up ↑
 101  102  is formatted according to the following color coding:
 102  103  .IP
 103  104  .nf
 104  105       unchanged : black
 105  106         removed : brown
 106  107         changed : blue
 107  108             new : bold blue
 108  109  .fi
 109  110  
 110  111  .SH SCM INTERACTIONS
 111      -.PP
 112  112  .B webrev
 113  113  attempts to interact with the source code management system currently in use.
 114  114  .B webrev
 115  115  needs to be able locate the code under review (i.e. the workspace) and
 116  116  the basis for comparison (i.e. the parent).  The method for doing so
 117  117  depends upon the SCM in use, which
 118  118  .B webrev
 119  119  will also attempt to auto-discover.  In all cases,
 120  120  .B webrev
 121  121  must either discover the list of files which have changed, or else this list
↓ open down ↓ 33 lines elided ↑ open up ↑
 155  155  
 156  156  .SS Subversion
 157  157  In the case of Subversion \fBwebrev\fR will attempt to use the output
 158  158  from the
 159  159  .BR svn (1)
 160  160  "svn info" to find the workspace root and subversion repository URL.
 161  161  .PP
 162  162  The file list will be created from the output of the "svn status" command.
 163  163  
 164  164  .SH CROSS REFERENCING
 165      -.PP
 166  165  After extracting comments (see FILE LIST below),
 167  166  .B webrev
 168  167  will translate cross references into hyperlinks.  By default, information
 169  168  about available information tracking systems can be found in
 170  169  /opt/onbld/etc/its.reg, and the specification of a local domain and
 171  170  selection and prioritization of systems
 172  171  in /opt/onbld/etc/its.conf.  These file formats are self documenting.  Also
 173  172  see the -I and -C options below.
 174  173  .SH OPTIONS
 175  174  .TP 10
↓ open down ↓ 2 lines elided ↑ open up ↑
 178  177  .TP 10
 179  178  .BI "-C " priority-file
 180  179  In addition to the system default and an optional user-supplied ~/.its.conf,
 181  180  use the specified file to specify a local domain list and prioritize the list
 182  181  of information tracking systems to be searched automatically when resolving cross
 183  182  references.
 184  183  .TP 10
 185  184  .BI "-D"
 186  185  Delete remote webrev via SFTP. Default remote host is \fIcr.opensolaris.org\fR,
 187  186  default remote directory for removal is the same as workspace/repository
 188      -basename. Remote target can be overriden using -t option. If combined with
      187 +basename. Remote target can be overridden using -t option. If combined with
 189  188  -U the deletion will be performed first. Also, if used together with -U
 190  189  and the removal fails, no upload is done. Without -U option no webrev will
 191  190  be generated, just like if -n option was used. The deletion is done by
 192  191  moving the webrev to special directory in user's home directory. It is
 193  192  expected that the remote host periodically runs a script which deletes
 194  193  the contents of this directory. See the ENVIRONMENT VARIABLES section for
 195  194  more details about this directory.
 196  195  .TP 10
 197  196  .BI "-h " head-revision
 198  197  Specify the explicit head to generate webrev from (git only).
↓ open down ↓ 1 lines elided ↑ open up ↑
 200  199  .BI "-I " information-file
 201  200  Use the specified file to seed the list of information tracking systems.
 202  201  .TP 10
 203  202  .BI "-i " include-file
 204  203  Include the specified file into the index.html file which is generated
 205  204  as part of the webrev.  This allows a snippet of XHTML to be added by
 206  205  the webrev author. User content is contained by a <div> tag and
 207  206  the markup should validate as XHTML 1.0 Transitional.
 208  207  .TP 10
 209  208  .BI "-N"
 210      -Suppress all comments from all output forms html, txt and pdf.
      209 +Suppress all comments from all output forms.
 211  210  .TP 10
 212  211  .BI "-n"
 213  212  Do not generate webrev. Useful whenever only upload is needed.
 214  213  .TP 10
 215  214  .B -O
 216  215  Enable \fIOpenSolaris\fR mode: information tracking system hyperlinks
 217  216  are generated using the EXTERNAL_URL field from the specified its.reg entry,
 218  217  instead of the default INTERNAL_URL_domain field, and sources which appear in
 219  218  \fIusr/closed\fR are automatically elided from the review.
 220  219  .TP 10
↓ open down ↓ 16 lines elided ↑ open up ↑
 237  236  Upload the webrev. Default remote host is \fIcr.opensolaris.org\fR.
 238  237  Default transport is rsync. If it fails, fallback to SCP/SFTP transport
 239  238  is done.
 240  239  .TP 10
 241  240  .BI "-w " wx-file
 242  241  Extract the file list from the wx "active" file specified.  'wx' uses
 243  242  this mode when invoking webrev.  The list is assumed to be in the
 244  243  format expected by the \fIwx\fR package.  See FILE LIST, below.
 245  244  
 246  245  .SH FILE LIST
 247      -.PP
 248  246  .B Webrev
 249  247  needs to be told or to discover which files have changed in a
 250  248  given workspace.  By default,
 251  249  .B webrev
 252  250  will attempt to autodetect the
 253  251  list of changed files by first consulting
 254  252  .BR wx "(1)."
 255  253  If this information is not available, webrev tries to consult the SCM (Source
 256  254  Code Manager) currently in use.  If that fails, the user must intervene by
 257  255  specifying either a file list or additional options specific to the SCM in use.
↓ open down ↓ 193 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX