[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.79 and 1.80

version 1.79, 2003/01/02 23:11:07 version 1.80, 2003/01/04 12:55:32
Line 117  usage()
Line 117  usage()
 {  {
         cat <<_usage_          cat <<_usage_
 Usage:  Usage:
 $(basename $0) [-bdEnortUu] [-a arch] [-B buildid] [-D dest] [-i idir] [-j njob]  $(basename $0) [-bdEnortUu] [-a arch] [-B buildid] [-D dest] [-i instdir]
     [-k kernel] [-M obj] [-m mach] [-O obj] [-R release] [-T tools] [-w wrapper]      [-j njob] [-k kernel] [-M obj] [-m mach] [-O obj] [-R release] [-T tools]
       [-V var=[value]] [-w wrapper]
   
     -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
Line 126  $(basename $0) [-bdEnortUu] [-a arch] [-
Line 127  $(basename $0) [-bdEnortUu] [-a arch] [-
     -D dest     set DESTDIR to dest      -D dest     set DESTDIR to dest
     -d          build a full distribution into DESTDIR (including etc files)      -d          build a full distribution into DESTDIR (including etc files)
     -E          set "expert" mode; disables some DESTDIR checks      -E          set "expert" mode; disables some DESTDIR checks
     -i idir     installworld from DESTDIR to idir      -i instdir  installworld from DESTDIR to instdir
     -j njob     run up to njob jobs in parallel; see make(1)      -j njob     run up to njob jobs in parallel; see make(1)
     -k kernel   build a kernel using the named configuration file      -k kernel   build a kernel using the named configuration file
     -M obj      set obj root directory to obj (sets MAKEOBJDIRPREFIX)      -M obj      set obj root directory to obj (sets MAKEOBJDIRPREFIX)
Line 140  $(basename $0) [-bdEnortUu] [-a arch] [-
Line 141  $(basename $0) [-bdEnortUu] [-a arch] [-
     -t          build and install tools only (implies -b)      -t          build and install tools only (implies -b)
     -U          set UNPRIVED      -U          set UNPRIVED
     -u          set UPDATE      -u          set UPDATE
       -V v=[val]  set variable \`v' to \`val'
     -w wrapper  create nbmake script at wrapper      -w wrapper  create nbmake script at wrapper
                 (default TOOLDIR/bin/nbmake-MACHINE)                  (default TOOLDIR/bin/nbmake-MACHINE)
   
Line 162  makeenv=
Line 164  makeenv=
 makewrapper=  makewrapper=
 installworlddir=  installworlddir=
 opt_a=no  opt_a=no
 opts='a:B:bD:dEhi:j:k:M:m:nO:oR:rT:tUuw:'  opts='a:B:bD:dEhi:j:k:M:m:nO:oR:rT:tUuV:w:'
 runcmd=  runcmd=
   
 if type getopts >/dev/null 2>&1; then  if type getopts >/dev/null 2>&1; then
Line 247  while eval $getoptcmd; do
Line 249  while eval $getoptcmd; do
         -u)     UPDATE=yes; export UPDATE          -u)     UPDATE=yes; export UPDATE
                 makeenv="$makeenv UPDATE";;                  makeenv="$makeenv UPDATE";;
   
           -V)     eval $optargcmd
                   case "${OPTARG}" in
                       # XXX: consider restricting which variables can be changed?
                   [a-zA-Z_][a-zA-Z_0-9]*=*)
                           var=${OPTARG%%=*}
                           value=${OPTARG#*=}
                           eval "${var}=\"${value}\"; export ${var}"
                           makeenv="$makeenv ${var}"
                           ;;
                   *)
                           echo "-V argument must be of the form 'var=[value]'"
                           usage;;
                   esac
                   ;;
   
         -w)     eval $optargcmd; resolvepath          -w)     eval $optargcmd; resolvepath
                 makewrapper="$OPTARG";;                  makewrapper="$OPTARG";;
   

Legend:
Removed from v.1.79  
changed lines
  Added in v.1.80

CVSweb <webmaster@jp.NetBSD.org>