Print this page
XXX Remove nawk(1)
@@ -233,11 +233,11 @@
# Patch up target directories for glommed kernel.
# usage: fixglom listfile glomname
#
function fixglom {
- nawk \
+ /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,11 +268,11 @@
# implementation was requested by the user.
# usage: filtimpl listfile implname
#
function filtimpl {
- nawk \
+ /usr/xpg4/bin/awk \
-v impl=$2 '
$1 == "MOD" || $1 == "SYMLINK" {
if ($6 == "all" || $6 == impl)
print
}
@@ -291,11 +291,11 @@
#
# Filter the module list to match the user's request.
# Usage: filtmod listfile modules
#
function filtmod {
- nawk -v reqstring="$2" '
+ /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,11 +451,11 @@
esac
}
# Sanity-check the given module list.
function check_modlist {
- nawk '
+ /usr/xpg4/bin/awk '
BEGIN {
nfields["MOD"] = 6
nfields["CONF"] = 6
nfields["LINK"] = 7
nfields["SYMLINK"] = 7
@@ -954,11 +954,11 @@
# 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':' '{
+ 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, "@");