Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/svr4pkg/pkgscripts/i.awk.sh
          +++ new/usr/src/cmd/svr4pkg/pkgscripts/i.awk.sh
↓ open down ↓ 29 lines elided ↑ open up ↑
  30   30  do
  31   31          [ "$src" = /dev/null ] && continue
  32   32  
  33   33          echo "Modifying $dest"
  34   34  
  35   35          # Strip PKG_INSTALL_ROOT from dest if installation is to an
  36   36          # alternate root.
  37   37  
  38   38          if [ -n "$PKG_INSTALL_ROOT" -a "$PKG_INSTALL_ROOT" != "/" ]; then
  39   39                  client_dest=`echo $dest | \
  40      -                        /usr/bin/nawk -v rootdir="$PKG_INSTALL_ROOT" '{
       40 +                        /usr/xpg4/bin/awk -v rootdir="$PKG_INSTALL_ROOT" '{
  41   41                                  { print substr($0, length(rootdir)+1)} }'`
  42   42                  savepath=$PKGSAV/awk${client_dest}
  43   43          else
  44   44                  savepath=$PKGSAV/awk${dest}
  45   45          fi
  46   46  
  47   47          dirname=`dirname $savepath`
  48   48          if [ $? -ne 0 ]
  49   49          then
  50   50                  error=yes
↓ open down ↓ 20 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX