Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/print/scripts/conv_lpd
          +++ new/usr/src/cmd/print/scripts/conv_lpd
↓ 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 (c) 1994, 1995, 1996 by Sun Microsystems, Inc.
  25   25  # All Rights Reserved
  26   26  #
  27      -# ident "%Z%%M% %I%     %E% SMI"
  28      -#
  29   27  #  Printcap <-> Printers.conf conversion utility...
  30   28  #
  31   29  #       Usage: conv_lpd [ -c (printers|printcap) ] [ -n ] (file)
  32   30  #
  33   31  
  34   32  TEXTDOMAIN="SUNW_OST_OSCMD"
  35   33  export TEXTDOMAIN
  36   34  
  37   35  USAGE=`gettext "Usage: conv_lpd [ -c (printers|printcap) ] [ -n ] (file)\n"`
  38   36  
↓ open down ↓ 57 lines elided ↑ open up ↑
  96   94  
  97   95  #
  98   96  # Continuation characters are now stripped.  Continue processing.
  99   97  #
 100   98          /bin/sed -e "s/:[       ]*:/:/g" $TMPF2 > $FILE
 101   99  
 102  100  #
 103  101  # Empty colons ":[ <TAB>]*:" are now stripped.  Continue processing.
 104  102  #
 105  103  
 106      -nawk '
      104 +/usr/xpg4/bin/awk '
 107  105  BEGIN {
 108  106          "uname -n" | getline ; 
 109  107          host = $0 ;
 110  108          found = 0 ;
 111  109          local_pr = 0;
 112  110  }
 113  111  
 114  112  {
 115  113          FS=":"; OFS=":" ;
 116  114          if ($0 !~ /^#/)
↓ open down ↓ 97 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX