Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/scripts/checkpaths.sh
          +++ new/usr/src/tools/scripts/checkpaths.sh
↓ open down ↓ 85 lines elided ↑ open up ↑
  86   86                  [ -f $SRC/pkgdefs/etc/exception_list_$arch ] && \
  87   87                          validate_paths '-s/\s*'$arch'$//' $excl -b $ROOT \
  88   88                              $args $SRC/pkgdefs/etc/exception_list_$arch
  89   89                  #
  90   90                  # These are the new-style packaging exception lists,
  91   91                  # from the repository-wide exception_lists/ directory.
  92   92                  #
  93   93                  e="$CODEMGR_WS/exception_lists/packaging"
  94   94                  for f in $e; do
  95   95                          if [ -f $f ]; then
  96      -                                nawk 'NF == 1 || /[     ]\+'$arch'$/ { print; }' \
       96 +                                /usr/xpg4/bin/awk 'NF == 1 || /[        ]\+'$arch'$/ { print; }' \
  97   97                                      < $f | validate_paths -b $ROOT -n $f
  98   98                          fi
  99   99                  done
 100  100          fi
 101  101  done
 102  102  
 103  103  # Two entries in the findunref exception_list deal with things created
 104  104  # by nightly.  Otherwise, this test could be run on an unmodifed (and
 105  105  # unbuilt) workspace.  We handle this by flagging the one that is
 106  106  # present only on a built workspace (./*.out) and the one that's
↓ open down ↓ 46 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX