Print this page
XXX Remove nawk(1)
*** 233,243 ****
# Patch up target directories for glommed kernel.
# usage: fixglom listfile glomname
#
function fixglom {
! nawk \
-v glomname=$2 \
-v karch=$KARCH '
$1 == "MOD" || $1 == "SYMLINK" {
sub(/^platform.*kernel/, "platform/" karch "/" glomname, $4)
sub(/^kernel/, "platform/" karch "/" glomname, $4)
--- 233,243 ----
# Patch up target directories for glommed kernel.
# usage: fixglom listfile glomname
#
function fixglom {
! /usr/xpg4/bin/awk \
-v glomname=$2 \
-v karch=$KARCH '
$1 == "MOD" || $1 == "SYMLINK" {
sub(/^platform.*kernel/, "platform/" karch "/" glomname, $4)
sub(/^kernel/, "platform/" karch "/" glomname, $4)
*** 268,278 ****
# implementation was requested by the user.
# usage: filtimpl listfile implname
#
function filtimpl {
! nawk \
-v impl=$2 '
$1 == "MOD" || $1 == "SYMLINK" {
if ($6 == "all" || $6 == impl)
print
}
--- 268,278 ----
# implementation was requested by the user.
# usage: filtimpl listfile implname
#
function filtimpl {
! /usr/xpg4/bin/awk \
-v impl=$2 '
$1 == "MOD" || $1 == "SYMLINK" {
if ($6 == "all" || $6 == impl)
print
}
*** 291,301 ****
#
# Filter the module list to match the user's request.
# Usage: filtmod listfile modules
#
function filtmod {
! nawk -v reqstring="$2" '
function modmatch(modname) {
if (reqstring == "All") {
return (1)
} else if (reqstring == "Modules") {
if (modname != "unix" && modname != "genunix")
--- 291,301 ----
#
# Filter the module list to match the user's request.
# Usage: filtmod listfile modules
#
function filtmod {
! /usr/xpg4/bin/awk -v reqstring="$2" '
function modmatch(modname) {
if (reqstring == "All") {
return (1)
} else if (reqstring == "Modules") {
if (modname != "unix" && modname != "genunix")
*** 451,461 ****
esac
}
# Sanity-check the given module list.
function check_modlist {
! nawk '
BEGIN {
nfields["MOD"] = 6
nfields["CONF"] = 6
nfields["LINK"] = 7
nfields["SYMLINK"] = 7
--- 451,461 ----
esac
}
# Sanity-check the given module list.
function check_modlist {
! /usr/xpg4/bin/awk '
BEGIN {
nfields["MOD"] = 6
nfields["CONF"] = 6
nfields["LINK"] = 7
nfields["SYMLINK"] = 7
*** 954,964 ****
# Extract the target machine and target directory from a target of the
# form [user@]machine:/dir .
#
if [ "$IMODE" != "n" ]; then
! eval `echo $TARGET | nawk -F':' '{
if (NF != 2 || !length($1) || !length($2))
print "usage \"Invalid target\""
m = $1; d = $2
if ($1 ~ /@/) {
k = split($1, f, "@");
--- 954,964 ----
# Extract the target machine and target directory from a target of the
# form [user@]machine:/dir .
#
if [ "$IMODE" != "n" ]; then
! eval `echo $TARGET | /usr/xpg4/bin/awk -F':' '{
if (NF != 2 || !length($1) || !length($2))
print "usage \"Invalid target\""
m = $1; d = $2
if ($1 ~ /@/) {
k = split($1, f, "@");