Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/scripts/protocmp.terse.sh
          +++ new/usr/src/tools/scripts/protocmp.terse.sh
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17  # If applicable, add the following below this CDDL HEADER, with the
  18   18  # fields enclosed by brackets "[]" replaced with your own identifying
  19   19  # information: Portions Copyright [yyyy] [name of copyright owner]
  20   20  #
  21   21  # CDDL HEADER END
  22   22  #
  23   23  #
  24   24  # Copyright 1993-2003 Sun Microsystems, Inc.  All rights reserved.
  25   25  # Use is subject to license terms.
  26   26  # 
  27      -#ident  "%Z%%M% %I%     %E% SMI"
  28   27  
  29   28  opts=""
  30   29  while getopts guplmsLv arg
  31   30  do
  32   31          if [ "$arg" = "?" ]; then
  33   32                  exit 1
  34   33          fi
  35   34          opts="$opts -$arg"
  36   35  done
  37   36  
↓ open down ↓ 4 lines elided ↑ open up ↑
  42   41          exit 1
  43   42  fi
  44   43  
  45   44  old="$1"; shift
  46   45  new="$1"; shift
  47   46  differ="$1"; shift
  48   47  
  49   48  errlog=/tmp/protocmp.err.$$
  50   49  
  51   50  protocmp $opts "$@" 2>$errlog |
  52      -        nawk -v old="$old" -v new="$new" -v differ="$differ" '
       51 +        /usr/xpg4/bin/awk -v old="$old" -v new="$new" -v differ="$differ" '
  53   52          /^\**$/ {
  54   53                  next;
  55   54          }
  56   55          /^\* Entries/ {
  57   56                  category++;
  58   57                  next;
  59   58          }
  60   59          /^\* filea ==/ {
  61   60                  filea = $NF;
  62   61                  next;
↓ open down ↓ 34 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX