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(-)
This commit is contained in:
Yann E. MORIN" 2009-04-06 20:27:17 +00:00
parent 204042b3b3
commit 9be02f047e
3 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ do_kernel_install() {
# Only starting with 2.6.18 does headers_install is usable. We only # Only starting with 2.6.18 does headers_install is usable. We only
# have 2.6 version available, so only test for sublevel. # have 2.6 version available, so only test for sublevel.
k_sublevel=$(gawk '/^SUBLEVEL =/ { print $3 }' "${CT_SRC_DIR}/linux-${CT_KERNEL_VERSION}/Makefile") k_sublevel=$("${awk}" '/^SUBLEVEL =/ { print $3 }' "${CT_SRC_DIR}/linux-${CT_KERNEL_VERSION}/Makefile")
[ ${k_sublevel} -ge 18 ] || CT_Abort "Kernel version >= 2.6.18 is needed to install kernel headers." [ ${k_sublevel} -ge 18 ] || CT_Abort "Kernel version >= 2.6.18 is needed to install kernel headers."
V_OPT="V=${CT_KERNEL_LINUX_VERBOSE_LEVEL}" V_OPT="V=${CT_KERNEL_LINUX_VERBOSE_LEVEL}"

View File

@ -42,7 +42,7 @@ do_mpfr_extract() {
# See: http://sourceware.org/ml/crossgcc/2008-11/msg00046.html # See: http://sourceware.org/ml/crossgcc/2008-11/msg00046.html
# and: http://sourceware.org/ml/crossgcc/2008-11/msg00048.html # and: http://sourceware.org/ml/crossgcc/2008-11/msg00048.html
libtoolize_opt= libtoolize_opt=
case "$(libtoolize --version |head -n 1 |gawk '{ print $(NF); }')" in case "$(libtoolize --version |head -n 1 |"${awk}" '{ print $(NF); }')" in
0.*) ;; 0.*) ;;
1.*) ;; 1.*) ;;
*) libtoolize_opt=-i;; *) libtoolize_opt=-i;;

View File

@ -317,7 +317,7 @@ CT_DoSetProxy() {
# Find all interfaces and build locally accessible networks # Find all interfaces and build locally accessible networks
server_ip=$(ping -c 1 -W 2 "${CT_PROXY_HOST}" |head -n 1 |sed -r -e 's/^[^\(]+\(([^\)]+)\).*$/\1/;' || true) server_ip=$(ping -c 1 -W 2 "${CT_PROXY_HOST}" |head -n 1 |sed -r -e 's/^[^\(]+\(([^\)]+)\).*$/\1/;' || true)
CT_TestOrAbort "SOCKS proxy '${CT_PROXY_HOST}' has no IP." -n "${server_ip}" CT_TestOrAbort "SOCKS proxy '${CT_PROXY_HOST}' has no IP." -n "${server_ip}"
/sbin/ifconfig |gawk -v server_ip="${server_ip}" ' /sbin/ifconfig |"${awk}" -v server_ip="${server_ip}" '
BEGIN { BEGIN {
split( server_ip, tmp, "\\." ); split( server_ip, tmp, "\\." );
server_ip_num = tmp[1] * 2^24 + tmp[2] * 2^16 + tmp[3] * 2^8 + tmp[4] * 2^0; server_ip_num = tmp[1] * 2^24 + tmp[2] * 2^16 + tmp[3] * 2^8 + tmp[4] * 2^0;
@ -845,7 +845,7 @@ CT_DoSaveState() {
# We must omit shell functions, and some specific bash variables # We must omit shell functions, and some specific bash variables
# that break when restoring the environment, later. We could do # that break when restoring the environment, later. We could do
# all the processing in the gawk script, but a sed is easier... # all the processing in the gawk script, but a sed is easier...
set |gawk ' set |"${awk}" '
BEGIN { _p = 1; } BEGIN { _p = 1; }
$0~/^[^ ]+ \(\)/ { _p = 0; } $0~/^[^ ]+ \(\)/ { _p = 0; }
_p == 1 _p == 1