[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.25 and 1.26

version 1.25, 2001/11/15 00:14:35 version 1.26, 2001/11/25 18:35:06
Line 86  resolvepath () {
Line 86  resolvepath () {
   
 usage () {  usage () {
         echo "Usage:"          echo "Usage:"
         echo "$0 [-boru] [-a arch] [-j njob] -m mach [-w wrapper]"          echo "$0 [-bdoru] [-a arch] [-j njob] -m mach [-w wrapper]"
         echo "   [-D dest] [-O obj] [-R release] [-T tools]"          echo "   [-D dest] [-O obj] [-R release] [-T tools]"
         echo ""          echo ""
         echo "    -a: set MACHINE_ARCH to arch (otherwise deduced from MACHINE)"          echo "    -a: set MACHINE_ARCH to arch (otherwise deduced from MACHINE)"
         echo "    -b: build nbmake and nbmake wrapper script, if needed"          echo "    -b: build nbmake and nbmake wrapper script, if needed"
           echo "    -d: build a full distribution into DESTDIR (including etc files)"
         echo "    -j: set NBUILDJOBS to njob"          echo "    -j: set NBUILDJOBS to njob"
         echo "    -m: set MACHINE to mach (not required if NetBSD native)"          echo "    -m: set MACHINE to mach (not required if NetBSD native)"
         echo "    -n: show commands that would be executed, but do not execute them"          echo "    -n: show commands that would be executed, but do not execute them"
Line 120  do_removedirs=false
Line 121  do_removedirs=false
 makeenv=  makeenv=
 makewrapper=  makewrapper=
 opt_a=no  opt_a=no
 opts='a:bhj:m:nortuw:D:O:R:T:'  opts='a:bdhj:m:nortuw:D:O:R:T:'
 runcmd=  runcmd=
   
 if type getopts >/dev/null 2>&1; then  if type getopts >/dev/null 2>&1; then
Line 146  while eval $getoptcmd; do case $opt in
Line 147  while eval $getoptcmd; do case $opt in
   
         -b)     do_buildsystem=false;;          -b)     do_buildsystem=false;;
   
           -d)     buildtarget=distribution;;
   
         -j)     eval $optargcmd          -j)     eval $optargcmd
                 MAKEFLAGS="$MAKEFLAGS NBUILDJOBS=$OPTARG"; export MAKEFLAGS;;                  MAKEFLAGS="$MAKEFLAGS NBUILDJOBS=$OPTARG"; export MAKEFLAGS;;
   
Line 262  removedirs="$TOOLDIR"
Line 265  removedirs="$TOOLDIR"
   
 if [ -z "$DESTDIR" ] || [ "$DESTDIR" = "/" ]; then  if [ -z "$DESTDIR" ] || [ "$DESTDIR" = "/" ]; then
         if $do_buildsystem && \          if $do_buildsystem && \
            ([ "$buildtarget" = "release" ] || \             ([ "$buildtarget" != "build" ] || \
             [ "`uname -s 2>/dev/null`" != "NetBSD" ] || \              [ "`uname -s 2>/dev/null`" != "NetBSD" ] || \
             [ "`uname -m`" != "$MACHINE" ]); then              [ "`uname -m`" != "$MACHINE" ]); then
                 bomb "DESTDIR must be set to a non-root path for cross builds or -R."                  bomb "DESTDIR must be set to a non-root path for cross builds or -d or -R."
         elif $do_buildsystem; then          elif $do_buildsystem; then
                 echo "===> WARNING: Building to /."                  echo "===> WARNING: Building to /."
                 echo "===> If your kernel is not up to date, this may cause the system to break!"                  echo "===> If your kernel is not up to date, this may cause the system to break!"

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

CVSweb <webmaster@jp.NetBSD.org>