Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libbsm/mkhdr.sh
          +++ new/usr/src/lib/libbsm/mkhdr.sh
↓ open down ↓ 68 lines elided ↑ open up ↑
  69   69   * 32768 - 65535        Available for third party TCB applications.
  70   70   *
  71   71   */
  72   72  
  73   73  #ifdef  __cplusplus
  74   74  extern "C" {
  75   75  #endif
  76   76  
  77   77  EOF
  78   78  
  79      -nawk -F: '{if ((NF == 4) && substr($1,0,1) != "#")
       79 +/usr/xpg4/bin/awk -F: '{if ((NF == 4) && substr($1,0,1) != "#")
  80   80                  if ($1 >= 2048) {
  81   81                          tlen = length($2);
  82   82  
  83   83                          printf("#define\t%s\t", $2)
  84   84                          if (tlen < 8)
  85   85                                  printf("\t");
  86   86                          if (tlen < 16)
  87   87                                  printf("\t");
  88   88                          if (tlen < 24)
  89   89                                  printf("\t");
↓ open down ↓ 15 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX