[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.118 and 1.119

version 1.118, 2003/10/19 03:37:36 version 1.119, 2003/10/25 03:46:09
Line 345  usage()
Line 345  usage()
         fi          fi
         cat <<_usage_          cat <<_usage_
   
 Usage: ${progname} [-EnorUu] [-a arch] [-B buildid] [-D dest] [-j njob] [-M obj]  Usage: ${progname} [-EnorUu] [-a arch] [-B buildid] [-D dest] [-j njob]
                 [-m mach] [-O obj] [-R release] [-T tools] [-V var=[value]]                  [-M obj] [-m mach] [-N noisy] [-O obj] [-R release] [-T tools]
                 [-w wrapper] [-Z var]   operation [...]                  [-V var=[value]] [-w wrapper] [-Z var]   operation [...]
   
  Build operations (all imply "obj" and "tools"):   Build operations (all imply "obj" and "tools"):
     build               Run "make build"      build               Run "make build"
Line 371  Usage: ${progname} [-EnorUu] [-a arch] [
Line 371  Usage: ${progname} [-EnorUu] [-a arch] [
  Options:   Options:
     -a arch     Set MACHINE_ARCH to arch (otherwise deduced from MACHINE)      -a arch     Set MACHINE_ARCH to arch (otherwise deduced from MACHINE)
     -B buildId  Set BUILDID to buildId      -B buildId  Set BUILDID to buildId
     -D dest     Set DESTDIR to dest.  (Default: destdir.MACHINE)      -D dest     Set DESTDIR to dest.  [Default: destdir.MACHINE]
     -E          Set "expert" mode; disables various safety checks.      -E          Set "expert" mode; disables various safety checks.
                 Should not be used without expert knowledge of the build system                  Should not be used without expert knowledge of the build system
     -j njob     Run up to njob jobs in parallel; see make(1)      -j njob     Run up to njob jobs in parallel; see make(1)
     -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 level of the build:
                       0   Quiet
                       1   Operations are described, commands are suppressed
                       2   Full output
                   [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.
     -o          Set MKOBJDIRS=no (do not create objdirs at start of build)      -o          Set MKOBJDIRS=no (do not create objdirs at start of build)
     -R release  Set RELEASEDIR to release.  (Default: releasedir)      -R release  Set RELEASEDIR to release.  [Default: releasedir]
     -r          Remove contents of TOOLDIR and DESTDIR before building      -r          Remove contents of TOOLDIR and DESTDIR before building
     -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
Line 392  Usage: ${progname} [-EnorUu] [-a arch] [
Line 397  Usage: ${progname} [-EnorUu] [-a arch] [
                 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}]
     -Z v        Unset ("zap") variable \`v'      -Z v        Unset ("zap") variable \`v'
   
 _usage_  _usage_
Line 401  _usage_
Line 406  _usage_
   
 parseoptions()  parseoptions()
 {  {
         opts='a:B:bD:dEhi:j:k:M:m:nO:oR:rT:tUuV:w:Z:'          opts='a:B:bD:dEhi:j:k:M:m:N:nO:oR:rT:tUuV:w:Z:'
         opt_a=no          opt_a=no
   
         if type getopts >/dev/null 2>&1; then          if type getopts >/dev/null 2>&1; then
Line 485  parseoptions()
Line 490  parseoptions()
                         [ "${opt_a}" != "yes" ] && getarch                          [ "${opt_a}" != "yes" ] && getarch
                         ;;                          ;;
   
                   -N)
                           eval ${optargcmd}
                           case "${OPTARG}" in
                           0|1)
                                   MAKEFLAGS="${MAKEFLAGS} -s"
                                   ;;
                           2)
                                   ;;
                           *)
                                   usage "'${OPTARG}' is not a valid value for -N"
                                   ;;
                           esac
                           setmakeenv MAKEVERBOSE "${OPTARG}"
                           ;;
   
                 -n)                  -n)
                         runcmd=echo                          runcmd=echo
                         ;;                          ;;

Legend:
Removed from v.1.118  
changed lines
  Added in v.1.119

CVSweb <webmaster@jp.NetBSD.org>