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


  12 # See the License for the specific language governing permissions
  13 # and limitations under the License.
  14 #
  15 # When distributing Covered Code, include this CDDL HEADER in each
  16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  17 # If applicable, add the following below this CDDL HEADER, with the
  18 # fields enclosed by brackets "[]" replaced with your own identifying
  19 # information: Portions Copyright [yyyy] [name of copyright owner]
  20 #
  21 # CDDL HEADER END
  22 #
  23 #
  24 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  25 # Use is subject to license terms.
  26 #
  27 
  28 #
  29 # Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  30 #
  31 
  32 XGETTEXT=xgettext

  33 MSGDIR=$1
  34 
  35 #
  36 # Change Directory
  37 #
  38         cd ./port/gen
  39         rm -f *.po
  40 
  41 #
  42 #       get list of files
  43 #
  44 FILES=`grep gettext *.c | sed "s/:.*//" | sort | sed "s/\.c//" | uniq`
  45 
  46 
  47 #
  48 #       Create po files
  49 #               No need for options for xgettext
  50 #
  51 for     i in ${FILES}
  52 do
  53         cat ${i}.c | sed "s/_libc_gettext/gettext/" > ${i}.i
  54         ${XGETTEXT} ${i}.i
  55         cat messages.po | sed "/^domain/d" > ${i}.po
  56         rm -f ${i}.i messages.po
  57 done
  58 
  59 #
  60 #       Create po files
  61 #               Use -a
  62 #
  63 
  64 # First, create errlst.c, if it doesn't exist.




  12 # See the License for the specific language governing permissions
  13 # and limitations under the License.
  14 #
  15 # When distributing Covered Code, include this CDDL HEADER in each
  16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  17 # If applicable, add the following below this CDDL HEADER, with the
  18 # fields enclosed by brackets "[]" replaced with your own identifying
  19 # information: Portions Copyright [yyyy] [name of copyright owner]
  20 #
  21 # CDDL HEADER END
  22 #
  23 #
  24 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  25 # Use is subject to license terms.
  26 #
  27 
  28 #
  29 # Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  30 #
  31 
  32 XGETTEXT=${XGETTEXT:-xgettext}
  33 GETTEXT=${GETTEXT:-gettext}
  34 MSGDIR=$1
  35 
  36 #
  37 # Change Directory
  38 #
  39         cd ./port/gen
  40         rm -f *.po
  41 
  42 #
  43 #       get list of files
  44 #
  45 FILES=`grep ${GETTEXT} *.c | sed "s/:.*//" | sort | sed "s/\.c//" | uniq`
  46 
  47 
  48 #
  49 #       Create po files
  50 #               No need for options for xgettext
  51 #
  52 for     i in ${FILES}
  53 do
  54         cat ${i}.c | sed "s/_libc_gettext/gettext/" > ${i}.i
  55         ${XGETTEXT} ${i}.i
  56         cat messages.po | sed "/^domain/d" > ${i}.po
  57         rm -f ${i}.i messages.po
  58 done
  59 
  60 #
  61 #       Create po files
  62 #               Use -a
  63 #
  64 
  65 # First, create errlst.c, if it doesn't exist.