Print this page
XXX Remove nawk(1)
*** 35,45 ****
# Strip PKG_INSTALL_ROOT from dest if installation is to an
# alternate root.
if [ -n "$PKG_INSTALL_ROOT" -a "$PKG_INSTALL_ROOT" != "/" ]; then
client_dest=`echo $dest | \
! /usr/bin/nawk -v rootdir="$PKG_INSTALL_ROOT" '{
{ print substr($0, length(rootdir)+1)} }'`
savepath=$PKGSAV/sed${client_dest}
else
savepath=$PKGSAV/sed${dest}
fi
--- 35,45 ----
# Strip PKG_INSTALL_ROOT from dest if installation is to an
# alternate root.
if [ -n "$PKG_INSTALL_ROOT" -a "$PKG_INSTALL_ROOT" != "/" ]; then
client_dest=`echo $dest | \
! /usr/xpg4/bin/awk -v rootdir="$PKG_INSTALL_ROOT" '{
{ print substr($0, length(rootdir)+1)} }'`
savepath=$PKGSAV/sed${client_dest}
else
savepath=$PKGSAV/sed${dest}
fi