Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/print/scripts/getmakes
          +++ new/usr/src/cmd/print/scripts/getmakes
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16  # If applicable, add the following below this CDDL HEADER, with the
  17   17  # fields enclosed by brackets "[]" replaced with your own identifying
  18   18  # information: Portions Copyright [yyyy] [name of copyright owner]
  19   19  #
  20   20  # CDDL HEADER END
  21   21  #
  22   22  # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25      -# ident "%Z%%M% %I%     %E% SMI"
  26      -#
  27   25  
  28   26  #
  29   27  # get a list of the Manufacturers from the ppdcache
  30   28  #
  31   29  
  32   30  [[ -f /var/lp/ppd/ppdcache ]] || exit 1
  33   31  /bin/cat /var/lp/ppd/ppdcache |
  34      -    nawk '{FS=":"; print $1}' |
  35      -    nawk '{print $1}' |
       32 +    /usr/xpg4/bin/awk '{FS=":"; print $1}' |
       33 +    /usr/xpg4/bin/awk '{print $1}' |
  36   34      /bin/sort -u
  37   35  exit 0
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX