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/nightly.1onbld
          +++ new/usr/src/tools/scripts/nightly.1onbld
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12  .\" " file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  13   13  .\" " If applicable, add the following below this CDDL HEADER, with the
  14   14  .\" " fields enclosed by brackets "[]" replaced with your own identifying
  15   15  .\" " information: Portions Copyright [yyyy] [name of copyright owner]
  16   16  .\" "
  17   17  .\" " CDDL HEADER END
  18   18  .\" "
  19   19  .\" "Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  20   20  .\" "Copyright 2012 Joshua M. Clulow <josh@sysmgr.org>
  21   21  .\" "
  22      -.TH nightly 1ONBLD "Jan 28, 2014"
       22 +.TH NIGHTLY 1ONBLD "Jan 28, 2014"
  23   23  .SH NAME
  24   24  .I nightly
  25   25  \- build an OS-Net consolidation overnight
  26   26  .SH SYNOPSIS
  27   27  \fBnightly [-in] [-V VERS] <env_file>\fP
  28      -.LP
  29   28  .SH DESCRIPTION
  30      -.IX "OS-Net build tools" "nightly" "" "\fBnightly\fP"
  31   29  .LP
  32   30  .I nightly,
  33   31  the mother of all build scripts,
  34   32  can bringover, build, archive, package, error check, and
  35   33  generally do everything it takes to
  36   34  turn OS/Net consolidation source code into useful stuff.
  37   35  It is customizable to permit you to run anything from a
  38   36  simple build to all of the cross-checking a gatekeeper
  39   37  needs.  The advantage to using
  40   38  .I nightly
↓ open down ↓ 54 lines elided ↑ open up ↑
  95   93  save a detailed log file for reference
  96   94  .TP
  97   95  \(bu
  98   96  mail the user a summary of the completed build
  99   97  .RE
 100   98  .LP
 101   99  The actions of the script are almost completely determined by
 102  100  the environment variables in the
 103  101  .I env
 104  102  file, the only necessary argument.  Ths only thing you really
 105      -need to use 
      103 +need to use
 106  104  .I nightly
 107  105  is an
 108  106  .I env
 109  107  file that does what you want.
 110  108  .LP
 111  109  Like most of the other build tools in usr/src/tools, this script tends
 112  110  to change on a fairly regular basis; do not expect to be able to build
 113  111  OS/Net with a version of nightly significantly older than your source
 114  112  tree.  It has what is effectively a Consolidation Private relationship
 115  113  to other build tools and with many parts of the OS/Net makefiles,
 116  114  although it may also be used to build other consolidations.
 117      -.LP
 118  115  .SH NIGHTLY_OPTIONS
 119  116  The environment variable NIGHTLY_OPTIONS controls the actions
 120  117  .I nightly
 121  118  will take as it proceeds.
 122  119  The -i, -n, +t and -V options may also be used from the command
 123  120  line to control the actions without editing your environment file.
 124  121  The -i and -n options complete the build more quickly by bypassing
 125  122  some actions. If NIGHTLY_OPTIONS is not set, then "-Bmt" build
 126  123  options will be used.
 127  124  
↓ open down ↓ 94 lines elided ↑ open up ↑
 222  219  .TP
 223  220  .B \-R
 224  221  Default group of options for building a release (-mp)
 225  222  
 226  223  .LP
 227  224  .B Miscellaneous options
 228  225  .TP 10
 229  226  .B \-V VERS
 230  227  set the build version string to VERS, overriding VERSION
 231  228  
 232      -.LP
 233  229  .SH ENVIRONMENT VARIABLES
 234  230  .LP
 235      -Here is a list of prominent environment variables that 
      231 +Here is a list of prominent environment variables that
 236  232  .I nightly
 237  233  references and the meaning of each variable.
 238      -.LP
 239      -.RE
 240  234  .B CODEMGR_WS
 241  235  .RS 5
 242  236  The root of your workspace, including whatever metadata is kept by
 243  237  the source code management system.  This is the workspace in which the
 244      -build will be done. 
      238 +build will be done.
 245  239  .RE
 246  240  .LP
 247  241  .B PARENT_WS
 248  242  .RS 5
 249  243  The root of the workspace that is the parent of the
 250  244  one being built.  This is particularly relevant for configurations
 251  245  with a main
 252      -workspace and build workspaces underneath it; see the 
      246 +workspace and build workspaces underneath it; see the
 253  247  \-u and \-U
 254  248  options as well as the PKGARCHIVE environment variable, for more
 255  249  information.
 256  250  .RE
 257  251  .LP
 258  252  .B BRINGOVER_WS
 259  253  .RS 5
 260  254  This is the workspace from which
 261  255  .I nightly
 262  256  will fetch sources to either populate or update your workspace;
↓ open down ↓ 115 lines elided ↑ open up ↑
 378  372  .LP
 379  373  .B RELEASE_DATE
 380  374  .RS 5
 381  375  The release date text to be used; e.g., October 2009. If not set in
 382  376  your environment file, then this text defaults to the output from
 383  377  $(LC_ALL=C date +"%B %Y"); e.g., "October 2009".
 384  378  .RE
 385  379  .LP
 386  380  .B RELEASE_BUILD
 387  381  .RS 5
 388      -Define this to build a release with a non-DEBUG kernel. 
      382 +Define this to build a release with a non-DEBUG kernel.
 389  383  Generally, let
 390  384  .I nightly
 391  385  set this for you based on its options.
 392  386  .RE
 393  387  .LP
 394  388  .B PKGARCHIVE
 395  389  .RS 5
 396  390  The destination for packages.  This may be relative to
 397  391  $CODEMGR_WS for private packages or relative to $PARENT_WS
 398  392  if you have different workspaces for different architectures
↓ open down ↓ 55 lines elided ↑ open up ↑
 454  448  /ws/onnv-tools/SUNWspro.  By default, it is derived from
 455  449  .BR OPTHOME .
 456  450  This is used by nightly, but not the makefiles.  There is no
 457  451  corresponding variable for Mercurial or Subversion, which are assumed
 458  452  to be installed in the default path.
 459  453  .RE
 460  454  .LP
 461  455  .B ON_CLOSED_BINS
 462  456  .RS 5
 463  457  OpenSolaris builds do not contain the closed source tree.  Instead,
 464      -the developer downloads a closed binaries tree and unpacks it.  
      458 +the developer downloads a closed binaries tree and unpacks it.
 465  459  .B ON_CLOSED_BINS
 466  460  tells nightly
 467  461  where to find these closed binaries, so that it can add them into the
 468  462  build.
 469  463  .RE
 470  464  .LP
 471  465  .B CHECK_PATHS
 472  466  .RS 5
 473  467  Normally, nightly runs the 'checkpaths' script to check for
 474  468  discrepancies among the files that list paths to other files, such as
↓ open down ↓ 3 lines elided ↑ open up ↑
 478  472  .LP
 479  473  .B CHECK_DMAKE
 480  474  .RS 5
 481  475  Nightly validates that the version of dmake encountered is known to be
 482  476  safe to use.  Set this flag to 'n' to disable this test, allowing any
 483  477  version of dmake to be used.
 484  478  .RE
 485  479  .LP
 486  480  .B MULTI_PROTO
 487  481  .RS 5
 488      -If "no" (the default), 
      482 +If "no" (the default),
 489  483  .I nightly
 490  484  will reuse $ROOT for both the DEBUG and non-DEBUG builds.  If "yes",
 491  485  the DEBUG build will go in $ROOT and the non-DEBUG build will go in
 492  486  $ROOT-nd.  Other values will be treated as "no".
 493  487  .RE
 494      -.LP
 495  488  .SH NIGHTLY HOOK ENVIRONMENT VARIABLES
 496  489  .LP
 497  490  Several optional environment variables may specify commands to run at
 498  491  various points during the build.  Commands specified in the hook
 499  492  variable will be run in a subshell; command output will be appended to
 500  493  the mail message and log file.  If the hook exits with a non-zero
 501  494  status, the build is aborted immediately.  Environment variables
 502  495  defined in the environment file will be available.
 503  496  .LP
 504  497  .B SYS_PRE_NIGHTLY
↓ open down ↓ 22 lines elided ↑ open up ↑
 527  520  Run after the build completes, with the return status of nightly - one
 528  521  of "Completed", "Interrupted", or "Failed" - available in the
 529  522  environment variable NIGHTLY_STATUS.
 530  523  .RE
 531  524  .LP
 532  525  .B SYS_POST_NIGHTLY
 533  526  .RS 5
 534  527  This is reserved for per-build-machine customizations, and runs
 535  528  immedately after POST_NIGHTLY.
 536  529  .RE
 537      -.LP
 538  530  .SH FILES
 539  531  .LP
 540  532  .RS 5
 541  533  /etc/nightly.conf
 542  534  .RE
 543  535  .LP
 544  536  If present, nightly executes this file just prior to executing the
 545  537  .I env
 546      -file.  
      538 +file.
 547  539  .SH EXAMPLES
 548  540  .LP
 549  541  Start with the example file in usr/src/tools/env/developer.sh
 550  542  (or gatekeeper.sh), copy to myenv and make your changes.
 551  543  .LP
 552  544  .PD 0
 553  545  # grep NIGHTLY_OPTIONS myenv
 554  546  .LP
 555  547  NIGHTLY_OPTIONS="-ACrlapDm"
 556  548  .LP
 557  549  export NIGHTLY_OPTIONS
 558  550  .LP
 559  551  # /opt/onbld/bin/nightly -i myenv
 560  552  .PD
 561      -.LP
 562  553  .SH SEE ALSO
 563  554  .BR bldenv (1ONBLD)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX