Print this page
6945 illumos xgettext should be using from Makefile.master

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libc/makelibccatalog.sh
          +++ new/usr/src/lib/libc/makelibccatalog.sh
↓ open down ↓ 21 lines elided ↑ open up ↑
  22   22  #
  23   23  #
  24   24  # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  25   25  # Use is subject to license terms.
  26   26  #
  27   27  
  28   28  #
  29   29  # Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  30   30  #
  31   31  
  32      -XGETTEXT=xgettext
       32 +XGETTEXT=${XGETTEXT:-xgettext}
       33 +GETTEXT=${GETTEXT:-gettext}
  33   34  MSGDIR=$1
  34   35  
  35   36  #
  36   37  # Change Directory
  37   38  #
  38   39          cd ./port/gen
  39   40          rm -f *.po
  40   41  
  41   42  #
  42   43  #       get list of files
  43   44  #
  44      -FILES=`grep gettext *.c | sed "s/:.*//" | sort | sed "s/\.c//" | uniq`
       45 +FILES=`grep ${GETTEXT} *.c | sed "s/:.*//" | sort | sed "s/\.c//" | uniq`
  45   46  
  46   47  
  47   48  #
  48   49  #       Create po files
  49   50  #               No need for options for xgettext
  50   51  #
  51   52  for     i in ${FILES}
  52   53  do
  53   54          cat ${i}.c | sed "s/_libc_gettext/gettext/" > ${i}.i
  54   55          ${XGETTEXT} ${i}.i
↓ open down ↓ 54 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX