version 1.162, 2007/02/19 14:20:11 |
version 1.163, 2007/03/25 07:56:38 |
|
|
${runcmd} echo "===> $@" | tee -a "${results}" |
${runcmd} echo "===> $@" | tee -a "${results}" |
} |
} |
|
|
|
warning() |
|
{ |
|
statusmsg "Warning: $@" |
|
} |
|
|
# Find a program in the PATH |
# Find a program in the PATH |
find_in_PATH() |
find_in_PATH() |
{ |
{ |
|
|
export MAKEFLAGS MACHINE MACHINE_ARCH |
export MAKEFLAGS MACHINE MACHINE_ARCH |
} |
} |
|
|
|
sanitycheck() |
|
{ |
|
# If the PATH contains any non-absolute components (including, |
|
# but not limited to, "." or ""), then complain. This is fatal |
|
# if expert mode is not in effect. |
|
# |
|
case ":${PATH}:/" in |
|
*:[!/]*) |
|
if ${do_expertmode}; then |
|
warning "PATH contains non-absolute components" |
|
else |
|
bomb "PATH must not contain non-absolute components" |
|
fi |
|
;; |
|
esac |
|
} |
|
|
rebuildmake() |
rebuildmake() |
{ |
{ |
# Test make source file timestamps against installed ${toolprefix}make |
# Test make source file timestamps against installed ${toolprefix}make |
|
|
_args=$@ |
_args=$@ |
parseoptions "$@" |
parseoptions "$@" |
|
|
|
sanitycheck |
|
|
build_start=$(date) |
build_start=$(date) |
statusmsg "${progname} command: $0 $@" |
statusmsg "${progname} command: $0 $@" |
statusmsg "${progname} started: ${build_start}" |
statusmsg "${progname} started: ${build_start}" |