version 1.28, 2001/11/30 02:18:13 |
version 1.29, 2001/12/03 08:18:00 |
|
|
} |
} |
[ -d usr.bin/make ] || bomb "build.sh must be run from the top source level" |
[ -d usr.bin/make ] || bomb "build.sh must be run from the top source level" |
|
|
|
TOP=`pwd` |
|
|
getarch () { |
getarch () { |
# Translate a MACHINE into a default MACHINE_ARCH. |
# Translate a MACHINE into a default MACHINE_ARCH. |
case $MACHINE in |
case $MACHINE in |
|
|
} |
} |
|
|
getmakevar () { |
getmakevar () { |
cat <<EOF | $make -s -f- _x_ |
cat <<EOF | $make -m ${TOP}/share/mk -s -f- _x_ |
_x_: |
_x_: |
echo \${$1} |
echo \${$1} |
.include <bsd.prog.mk> |
.include <bsd.prog.mk> |
|
|
# default setting from <bsd.own.mk> is used. |
# default setting from <bsd.own.mk> is used. |
if [ -z "$TOOLDIR" ] && [ "$MKOBJDIRS" != "no" ]; then |
if [ -z "$TOOLDIR" ] && [ "$MKOBJDIRS" != "no" ]; then |
$runcmd cd tools |
$runcmd cd tools |
$runcmd $make obj NOSUBDIR= || exit 1 |
$runcmd $make -m ${TOP}/share/mk obj NOSUBDIR= || exit 1 |
$runcmd cd .. |
$runcmd cd .. |
fi |
fi |
|
|