[BACK]Return to build.sh CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/build.sh between version 1.194 and 1.195

version 1.194, 2008/08/16 00:10:04 version 1.195, 2008/08/18 05:26:05
Line 212  initdefaults()
Line 212  initdefaults()
         do_rebuildmake=false          do_rebuildmake=false
         do_removedirs=false          do_removedirs=false
         do_tools=false          do_tools=false
           do_cleandir=false
         do_obj=false          do_obj=false
         do_build=false          do_build=false
         do_distribution=false          do_distribution=false
Line 527  usage()
Line 528  usage()
         cat <<_usage_          cat <<_usage_
   
 Usage: ${progname} [-EnorUux] [-a arch] [-B buildid] [-C cdextras]  Usage: ${progname} [-EnorUux] [-a arch] [-B buildid] [-C cdextras]
                 [-D dest] [-j njob] [-M obj] [-m mach] [-N noisy]                  [-D dest] [-j njob] [-M obj] [-m mach] [-N noisy]
                 [-O obj] [-R release] [-S seed] [-T tools]                  [-O obj] [-R release] [-S seed] [-T tools]
                 [-V var=[value]] [-w wrapper] [-X x11src] [-Z var]                  [-V var=[value]] [-w wrapper] [-X x11src] [-Z var]
                 operation [...]                  operation [...]
   
  Build operations (all imply "obj" and "tools"):   Build operations (all imply "obj" and "tools"):
     build               Run "make build".      build               Run "make build".
Line 541  Usage: ${progname} [-EnorUux] [-a arch] 
Line 542  Usage: ${progname} [-EnorUux] [-a arch] 
     help                Show this message and exit.      help                Show this message and exit.
     makewrapper         Create ${toolprefix}make-\${MACHINE} wrapper and ${toolprefix}make.      makewrapper         Create ${toolprefix}make-\${MACHINE} wrapper and ${toolprefix}make.
                         Always performed.                          Always performed.
       cleandir            Run "make cleandir".  [Default unless -u is used]
     obj                 Run "make obj".  [Default unless -o is used]      obj                 Run "make obj".  [Default unless -o is used]
     tools               Build and install tools.      tools               Build and install tools.
     install=idir        Run "make installworld" to \`idir' to install all sets      install=idir        Run "make installworld" to \`idir' to install all sets
                         except \`etc'.  Useful after "distribution" or "release"                          except \`etc'.  Useful after "distribution" or "release"
     kernel=conf         Build kernel with config file \`conf'      kernel=conf         Build kernel with config file \`conf'
     releasekernel=conf  Install kernel built by kernel=conf to RELEASEDIR.      releasekernel=conf  Install kernel built by kernel=conf to RELEASEDIR.
     sets                Create binary sets in      sets                Create binary sets in
                         RELEASEDIR/RELEASEMACHINEDIR/binary/sets.                          RELEASEDIR/RELEASEMACHINEDIR/binary/sets.
                         DESTDIR should be populated beforehand.                          DESTDIR should be populated beforehand.
     sourcesets          Create source sets in RELEASEDIR/source/sets.      sourcesets          Create source sets in RELEASEDIR/source/sets.
     syspkgs             Create syspkgs in      syspkgs             Create syspkgs in
                         RELEASEDIR/RELEASEMACHINEDIR/binary/syspkgs.                          RELEASEDIR/RELEASEMACHINEDIR/binary/syspkgs.
     iso-image           Create CD-ROM image in RELEASEDIR/iso.      iso-image           Create CD-ROM image in RELEASEDIR/iso.
     iso-image-source    Create CD-ROM image with source in RELEASEDIR/iso.      iso-image-source    Create CD-ROM image with source in RELEASEDIR/iso.
     params              Display various make(1) parameters.      params              Display various make(1) parameters.
Line 569  Usage: ${progname} [-EnorUux] [-a arch] 
Line 571  Usage: ${progname} [-EnorUux] [-a arch] 
     -M obj      Set obj root directory to obj; sets MAKEOBJDIRPREFIX.      -M obj      Set obj root directory to obj; sets MAKEOBJDIRPREFIX.
                 Unsets MAKEOBJDIR.                  Unsets MAKEOBJDIR.
     -m mach     Set MACHINE to mach; not required if NetBSD native.      -m mach     Set MACHINE to mach; not required if NetBSD native.
     -N noisy    Set the noisyness (MAKEVERBOSE) level of the build:      -N noisy    Set the noisyness (MAKEVERBOSE) level of the build:
                     0   Quiet                      0   Quiet
                     1   Operations are described, commands are suppressed                      1   Operations are described, commands are suppressed
                     2   Full output                      2   Full output
                 [Default: 2]                  [Default: 2]
     -n          Show commands that would be executed, but do not execute them.      -n          Show commands that would be executed, but do not execute them.
     -O obj      Set obj root directory to obj; sets a MAKEOBJDIR pattern.      -O obj      Set obj root directory to obj; sets a MAKEOBJDIR pattern.
                 Unsets MAKEOBJDIRPREFIX.                  Unsets MAKEOBJDIRPREFIX.
Line 584  Usage: ${progname} [-EnorUux] [-a arch] 
Line 586  Usage: ${progname} [-EnorUux] [-a arch] 
     -T tools    Set TOOLDIR to tools.  If unset, and TOOLDIR is not set in      -T tools    Set TOOLDIR to tools.  If unset, and TOOLDIR is not set in
                 the environment, ${toolprefix}make will be (re)built unconditionally.                  the environment, ${toolprefix}make will be (re)built unconditionally.
     -U          Set MKUNPRIVED=yes; build without requiring root privileges,      -U          Set MKUNPRIVED=yes; build without requiring root privileges,
                 install from an UNPRIVED build with proper file permissions.                  install from an UNPRIVED build with proper file permissions.
     -u          Set MKUPDATE=yes; do not run "make cleandir" first.      -u          Set MKUPDATE=yes; do not run "make cleandir" first.
                 Without this, everything is rebuilt, including the tools.                  Without this, everything is rebuilt, including the tools.
     -V v=[val]  Set variable \`v' to \`val'.      -V v=[val]  Set variable \`v' to \`val'.
     -w wrapper  Create ${toolprefix}make script as wrapper.      -w wrapper  Create ${toolprefix}make script as wrapper.
                 [Default: \${TOOLDIR}/bin/${toolprefix}make-\${MACHINE}]                  [Default: \${TOOLDIR}/bin/${toolprefix}make-\${MACHINE}]
Line 806  parseoptions()
Line 808  parseoptions()
                         usage                          usage
                         ;;                          ;;
   
                 makewrapper|obj|tools|build|distribution|release|sets|sourcesets|syspkgs|params)                  makewrapper|cleandir|obj|tools|build|distribution|release|sets|sourcesets|syspkgs|params)
                         ;;                          ;;
   
                 iso-image)                  iso-image)
Line 1379  main()
Line 1381  main()
                         statusmsg "Built sets to ${setdir}"                          statusmsg "Built sets to ${setdir}"
                         ;;                          ;;
   
                 obj|build|distribution|release|sourcesets|syspkgs|params)                  cleandir|obj|build|distribution|release|sourcesets|syspkgs|params)
                         ${runcmd} "${makewrapper}" ${parallel} ${op} ||                          ${runcmd} "${makewrapper}" ${parallel} ${op} ||
                             bomb "Failed to make ${op}"                              bomb "Failed to make ${op}"
                         statusmsg "Successful make ${op}"                          statusmsg "Successful make ${op}"

Legend:
Removed from v.1.194  
changed lines
  Added in v.1.195

CVSweb <webmaster@jp.NetBSD.org>