[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.198.2.3 and 1.199

version 1.198.2.3, 2009/03/18 05:39:06 version 1.199, 2008/11/13 20:40:11
Line 43 
Line 43 
 progname=${0##*/}  progname=${0##*/}
 toppid=$$  toppid=$$
 results=/dev/null  results=/dev/null
 tab='   '  
 trap "exit 1" 1 2 3 15  trap "exit 1" 1 2 3 15
   
 bomb()  bomb()
Line 114  set_HOST_SH()
Line 113  set_HOST_SH()
         # specifying HOST_SH in the environment.          # specifying HOST_SH in the environment.
         #          #
         [ -z "${HOST_SH}" ] && HOST_SH="$(          [ -z "${HOST_SH}" ] && HOST_SH="$(
                 (ps -p $$ -o comm | sed -ne "2s/[ ${tab}]*\$//p") 2>/dev/null )"                  (ps -p $$ -o comm | sed -ne '2s/[ \t]*$//p') 2>/dev/null )"
   
         # If nothing above worked, use "sh".  We will later find the          # If nothing above worked, use "sh".  We will later find the
         # first directory in the PATH that has a "sh" program.          # first directory in the PATH that has a "sh" program.
Line 163  initdefaults()
Line 162  initdefaults()
         [ -f share/mk/bsd.own.mk ] ||          [ -f share/mk/bsd.own.mk ] ||
             bomb "src/share/mk is missing; please re-fetch the source tree"              bomb "src/share/mk is missing; please re-fetch the source tree"
   
         # Find information about the build platform.  This should be          # Find information about the build platform.  Note that "uname -p"
         # kept in sync with _HOST_OSNAME, _HOST_OSREL, and _HOST_ARCH          # is not part of POSIX, but NetBSD's uname -p prints MACHINE_ARCH,
         # variables in share/mk/bsd.sys.mk.          # while uname -m prints MACHINE.
         #  
         # Note that "uname -p" is not part of POSIX, but we want uname_p  
         # to be set to the host MACHINE_ARCH, if possible.  On systems  
         # where "uname -p" fails, prints "unknown", or prints a string  
         # that does not look like an identifier, fall back to using the  
         # output from "uname -m" instead.  
         #          #
         uname_s=$(uname -s 2>/dev/null)          uname_s=$(uname -s 2>/dev/null)
         uname_r=$(uname -r 2>/dev/null)          uname_r=$(uname -r 2>/dev/null)
         uname_m=$(uname -m 2>/dev/null)          uname_m=$(uname -m 2>/dev/null)
         uname_p=$(uname -p 2>/dev/null || echo "unknown")          uname_p=$(uname -p 2>/dev/null || uname -m 2>/dev/null)
         case "${uname_p}" in  
         ''|unknown|*[^-_A-Za-z0-9]*) uname_p="${uname_m}" ;;  
         esac  
   
         # If $PWD is a valid name of the current directory, POSIX mandates          # If $PWD is a valid name of the current directory, POSIX mandates
         # that pwd return it by default which causes problems in the          # that pwd return it by default which causes problems in the
Line 582  Usage: ${progname} [-EnorUux] [-a arch] 
Line 572  Usage: ${progname} [-EnorUux] [-a arch] 
                 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   Minimal output ("quiet")
                     1   Operations are described, commands are suppressed                      1   Describe what is occurring
                     2   Full output                      2   Describe what is occurring and echo the actual command
                       3   Ignore the effect of the "@" prefix in make commands
                       4   Trace shell commands using the shell's -x flag
                 [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.
Line 688  parseoptions()
Line 680  parseoptions()
                 -N)                  -N)
                         eval ${optargcmd}                          eval ${optargcmd}
                         case "${OPTARG}" in                          case "${OPTARG}" in
                         0|1|2)                          0|1|2|3|4)
                                 setmakeenv MAKEVERBOSE "${OPTARG}"                                  setmakeenv MAKEVERBOSE "${OPTARG}"
                                 ;;                                  ;;
                         *)                          *)

Legend:
Removed from v.1.198.2.3  
changed lines
  Added in v.1.199

CVSweb <webmaster@jp.NetBSD.org>