Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/tools/scripts/tigen.sh
          +++ new/usr/src/cmd/mdb/tools/scripts/tigen.sh
↓ open down ↓ 46 lines elided ↑ open up ↑
  47   47  {
  48   48          echo "Usage: $PROGNAME -s skel -t termio [-v] term ..." >&2
  49   49          exit 2
  50   50  }
  51   51  
  52   52  extract_section()
  53   53  {
  54   54          typeset skel="$1"
  55   55          typeset secname="$2"
  56   56  
  57      -        nawk <$skel -v name=$secname -v skel=$skel '
       57 +        /usr/xpg4/bin/awk <$skel -v name=$secname -v skel=$skel '
  58   58              /\/\* [^ ]* [^ ]* \*\// && $3 == name {
  59   59                  if ($2 == "BEGIN") {
  60   60                          printing = 1;
  61   61                          printf("# %d \"%s\"\n", NR + 1, skel);
  62   62                  } else {
  63   63                          printing = 0;
  64   64                  }
  65   65                  next;
  66   66              }
  67   67  
↓ open down ↓ 101 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX