Use "${awk}", not gawk.
/trunk/scripts/build/kernel/linux.sh | 2 1 1 0 +-
/trunk/scripts/build/mpfr.sh | 2 1 1 0 +-
/trunk/scripts/functions | 4 2 2 0 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
1.1 --- a/scripts/build/kernel/linux.sh Fri Apr 03 20:22:19 2009 +0000
1.2 +++ b/scripts/build/kernel/linux.sh Mon Apr 06 20:27:17 2009 +0000
1.3 @@ -47,7 +47,7 @@
1.4
1.5 # Only starting with 2.6.18 does headers_install is usable. We only
1.6 # have 2.6 version available, so only test for sublevel.
1.7 - k_sublevel=$(gawk '/^SUBLEVEL =/ { print $3 }' "${CT_SRC_DIR}/linux-${CT_KERNEL_VERSION}/Makefile")
1.8 + k_sublevel=$("${awk}" '/^SUBLEVEL =/ { print $3 }' "${CT_SRC_DIR}/linux-${CT_KERNEL_VERSION}/Makefile")
1.9 [ ${k_sublevel} -ge 18 ] || CT_Abort "Kernel version >= 2.6.18 is needed to install kernel headers."
1.10
1.11 V_OPT="V=${CT_KERNEL_LINUX_VERBOSE_LEVEL}"
2.1 --- a/scripts/build/mpfr.sh Fri Apr 03 20:22:19 2009 +0000
2.2 +++ b/scripts/build/mpfr.sh Mon Apr 06 20:27:17 2009 +0000
2.3 @@ -42,7 +42,7 @@
2.4 # See: http://sourceware.org/ml/crossgcc/2008-11/msg00046.html
2.5 # and: http://sourceware.org/ml/crossgcc/2008-11/msg00048.html
2.6 libtoolize_opt=
2.7 - case "$(libtoolize --version |head -n 1 |gawk '{ print $(NF); }')" in
2.8 + case "$(libtoolize --version |head -n 1 |"${awk}" '{ print $(NF); }')" in
2.9 0.*) ;;
2.10 1.*) ;;
2.11 *) libtoolize_opt=-i;;
3.1 --- a/scripts/functions Fri Apr 03 20:22:19 2009 +0000
3.2 +++ b/scripts/functions Mon Apr 06 20:27:17 2009 +0000
3.3 @@ -317,7 +317,7 @@
3.4 # Find all interfaces and build locally accessible networks
3.5 server_ip=$(ping -c 1 -W 2 "${CT_PROXY_HOST}" |head -n 1 |sed -r -e 's/^[^\(]+\(([^\)]+)\).*$/\1/;' || true)
3.6 CT_TestOrAbort "SOCKS proxy '${CT_PROXY_HOST}' has no IP." -n "${server_ip}"
3.7 - /sbin/ifconfig |gawk -v server_ip="${server_ip}" '
3.8 + /sbin/ifconfig |"${awk}" -v server_ip="${server_ip}" '
3.9 BEGIN {
3.10 split( server_ip, tmp, "\\." );
3.11 server_ip_num = tmp[1] * 2^24 + tmp[2] * 2^16 + tmp[3] * 2^8 + tmp[4] * 2^0;
3.12 @@ -845,7 +845,7 @@
3.13 # We must omit shell functions, and some specific bash variables
3.14 # that break when restoring the environment, later. We could do
3.15 # all the processing in the gawk script, but a sed is easier...
3.16 - set |gawk '
3.17 + set |"${awk}" '
3.18 BEGIN { _p = 1; }
3.19 $0~/^[^ ]+ \(\)/ { _p = 0; }
3.20 _p == 1