Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/ndrgen/ndrgen.sh
          +++ new/usr/src/tools/ndrgen/ndrgen.sh
↓ open down ↓ 40 lines elided ↑ open up ↑
  41   41          echo "usage: $PROGNAME [-Y cpp-path] file [file]..."
  42   42          exit 1
  43   43  }
  44   44  
  45   45  # Copy header text from the input ndl file to the generated ndr C file.
  46   46  ndrgen_copy_header()
  47   47  {
  48   48          ndl_file=$1
  49   49          ndr_file=$2
  50   50  
  51      -        nawk 'BEGIN { copy=0; }
       51 +        /usr/xpg4/bin/awk 'BEGIN { copy=0; }
  52   52          /^\/\* NDRGEN_HEADER_BEGIN \*\// { copy=1; next; }
  53   53          /^\/\* NDRGEN_HEADER_END \*\// { copy=0; next; }
  54   54          /./ { if (copy==1) print; }' < $ndl_file > $ndr_file
  55   55  }
  56   56  
  57   57  if [[ $# -lt 1 ]] ; then
  58   58          ndrgen_usage
  59   59  fi
  60   60  
  61   61  while getopts "Y" FLAG $*; do
↓ open down ↓ 75 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX