+2003-02-12 Bruno Haible <bruno@clisp.org>
+
+ * Makefile.am (pkgdatadir): Define using 'gettext' instead of
+ @PACKAGE@.
+
2002-08-06 Bruno Haible <bruno@clisp.org>
* gettext-0.11.5 released.
-## Makefile for the projects subdirectory of the GNU NLS Utilities
-## Copyright (C) 2001-2002 Free Software Foundation, Inc.
+## Makefile for the gettext-tools/projects subdirectory of GNU gettext
+## Copyright (C) 2001-2003 Free Software Foundation, Inc.
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
RM = rm -f
+pkgdatadir = $(datadir)/gettext
projectsdir = $(pkgdatadir)/projects
PROJECTS = TP KDE GNOME
--- /dev/null
+ Short description of the source files
+ =====================================
+
+The msg* and xgettext programs.
+
+Bottom-up structure:
+
+str-list.h
+str-list.c
+ A list-of-immutable-strings type.
+
+dir-list.h
+dir-list.c
+ Management of the list of directories where PO files are
+ searched.
+
+file-list.h
+file-list.c
+ Reading a file list from a file. Used by those programs which
+ accept multiple file arguments and have a --files-from option.
+
+pos.h
+ Source file positions.
+
+message.h
+message.c
+ The message type, with many utility routines.
+ A list-of-messages type.
+ A list-of-lists-of-messages type.
+
+msgl-ascii.h
+msgl-ascii.c
+ Message list test for ASCII character set.
+
+write-po.h
+write-po.c
+ Output of a list-of-messages to a PO file.
+
++-------------- Reading PO files
+| open-po.h
+| open-po.c
+| Opening PO files for reading.
+|
+| po-charset.h
+| po-charset.c
+| Charset handling while reading PO files.
+|
+| po-lex.h
+| po-lex.c
+| Lexical analysis of PO files.
+|
+| po.h
+| po-hash.h
+| po-hash-gen.y
+| po-gram.h
+| po-gram-gen.y
+| po.c
+| Parsing of PO files.
+| po.h
+| General parser structure.
+| po-hash.h
+| po-hash-gen.y
+| Lexical analysis and parsing of pseudo-comments in
+| PO files, introduced by "#:" and "#".
+| po-gram.h
+| po-gram-gen.y
+| Parsing of PO files, based on po-lex.{h,c}.
+| po.c
+| Top-level parser functions and callbacks.
+|
+| read-po.h
+| read-po.c
+| Reading of a PO file, returning a list-of-messages.
+|
++-------------- Reading PO files
+
+msgl-iconv.h
+msgl-iconv.c
+ Convert a list-of-messages to another character encoding.
+
+msgl-cat.h
+msgl-cat.c
+ Concatenate message lists from several files, with handling
+ of duplicate msgids.
+
+msgcmp.c Main source for the 'msgcmp' program.
+
++-------------- The 'msgmerge' program
+| msgl-equal.h
+| msgl-equal.c
+| Comparing two lists-of-messages.
+| msgmerge.c
+| Main source for the 'msgmerge' program.
+|
++-------------- The 'msgmerge' program
+
+msgcomm.c Main source for the 'msgcomm' program.
+msgattrib.c Main source for the 'msgattrib' program.
+msgcat.c Main source for the 'msgcat' program.
+msgconv.c Main source for the 'msgconv' program.
+msguniq.c Main source for the 'msguniq' program.
+
+msgl-charset.h
+msgl-charset.c
+ Compare the encoding of a list-of-messages with the locale
+ encoding.
+
+msgexec.c Main source for the 'msgexec' program.
+msgfilter.c Main source for the 'msgfilter' program.
+msggrep.c Main source for the 'msggrep' program.
+
++-------------- The 'msgen' program
+| msgl-english.h
+| msgl-english.c
+| English message initialization.
+| msgen.c
+| Main source for the 'msgen' program.
+|
++-------------- The 'msgen' program
+
+po-time.h
+po-time.c
+ Create time stamps for use in PO/POT files.
+
+plural-table.h
+plural-table.c
+ Table of plural form formulas.
+
++-------------- The 'msginit' program
+| hostname.c
+| The 'hostname' program.
+| user-email.in
+| Determine the user's email address.
+| urlget.c
+| The 'urlget' program.
+| project-id
+| Determine the package's name.
+| msginit.c
+| Main source for the 'msginit' program.
+|
++-------------- The 'msginit' program
+
++-------------- The 'msgunfmt' program
+| msgunfmt.h
+| Declarations.
+| read-mo.h
+| read-mo.c
+| Reading GNU .mo files.
+| read-java.h
+| read-java.c
+| Reading Java ResourceBundle files.
+| read-tcl.h
+| read-tcl.c
+| Reading Tcl .msg files.
+| msgunfmt.c
+| Main source for the 'msgunfmt' program.
+|
++-------------- The 'msgunfmt' program
+
+format.h Declarations of the language dependent format string handlers.
+format-c.c Format string handling for C.
+format-python.c Format string handling for Python.
+format-lisp.c Format string handling for Common Lisp.
+format-elisp.c Format string handling for Emacs Lisp.
+format-librep.c Format string handling for librep.
+format-java.c Format string handling for Java.
+format-awk.c Format string handling for awk.
+format-pascal.c Format string handling for Object Pascal.
+format-ycp.c Format string handling for YCP.
+format-tcl.c Format string handling for Tcl.
+format-php.c Format string handling for PHP.
+format.c Table of the language dependent format string handlers.
+
++-------------- The 'msgfmt' program
+| msgfmt.h
+| Declarations.
+| plural.c
+| Parsing plural expressions.
+| plural-eval.c
+| Evaluating plursl expressions.
+| write-mo.h
+| write-mo.c
+| Generating GNU .mo files.
+| write-java.h
+| write-java.c
+| Generating Java ResourceBundle files.
+| write-tcl.h
+| write-tcl.c
+| Generating Tcl .msg files.
+| msgfmt.c
+| Main source for the 'msgfmt' program.
+|
++-------------- The 'msgfmt' program
+
++-------------- The 'xgettext' program
+| xgettext.h
+| Declarations used by the backends.
+| x-c.h
+| x-c.c
+| String extractor for C.
+| x-po.h
+| x-po.c
+| String extractor from PO files.
+| x-python.h
+| x-python.c
+| String extractor for Python.
+| x-lisp.h
+| x-lisp.c
+| String extractor for Common Lisp.
+| x-elisp.h
+| x-elisp.c
+| String extractor for Emacs Lisp.
+| x-librep.h
+| x-librep.c
+| String extractor for librep.
+| x-smalltalk.h
+| x-smalltalk.c
+| String extractor for Smalltalk.
+| x-java.h
+| x-java.l
+| String extractor for Java.
+| x-awk.h
+| x-awk.c
+| String extractor for awk.
+| x-ycp.h
+| x-ycp.c
+| String extractor for YCP.
+| x-tcl.h
+| x-tcl.c
+| String extractor for Tcl.
+| x-php.h
+| x-php.c
+| String extractor for PHP.
+| x-rst.h
+| x-rst.c
+| String extractor from .rst files, for Object Pascal.
+| x-glade.h
+| x-glade.c
+| String extractor from .glade files, GNOME GUI descriptions.
+| xgettext.c
+| Main source for the 'xgettext' program.
+|
++-------------- The 'xgettext' program
-## Makefile for program src directory in GNU NLS utilities package.
+## Makefile for the gettext-tools/src subdirectory of GNU gettext
## Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
##
## This program is free software; you can redistribute it and/or modify
RM = rm -f
-bin_PROGRAMS = gettext ngettext \
+bin_PROGRAMS = \
msgcmp msgfmt msgmerge msgunfmt xgettext \
msgattrib msgcat msgcomm msgconv msgen msgexec msgfilter msggrep msginit msguniq
x-elisp.h x-librep.h x-smalltalk.h x-java.h x-awk.h x-ycp.h x-tcl.h x-php.h \
x-rst.h x-glade.h
-EXTRA_DIST += FILES project-id
+EXTRA_DIST += FILES project-id ChangeLog.0
localedir = $(datadir)/locale
jardir = $(datadir)/gettext
+pkgdatadir = $(datadir)/gettext
projectsdir = $(pkgdatadir)/projects
-
-INCLUDES = -I. -I$(srcdir) -I.. -I$(top_srcdir)/libuniname \
--I../lib -I$(top_srcdir)/lib -I../intl -I$(top_srcdir)/intl
-DEFS = -DLOCALEDIR=\"$(localedir)\" -DUSEJEXE=$(USEJEXE) \
--DGETTEXTJEXEDIR=\"$(pkglibdir)\" -DGETTEXTJAR=\"$(jardir)/gettext.jar\" \
--DLIBDIR=\"$(libdir)\" -DGETTEXTDATADIR=\"$(pkgdatadir)\" \
--DPROJECTSDIR=\"$(projectsdir)\" @DEFS@
+pkglibdir = $(libdir)/gettext
+
+INCLUDES = \
+ -I. -I$(srcdir) \
+ -I.. \
+ -I$(top_srcdir)/libuniname \
+ -I../lib -I$(top_srcdir)/lib \
+ -I../intl -I$(top_srcdir)/../gettext-runtime/intl
+DEFS = \
+ -DLOCALEDIR=\"$(localedir)\" \
+ -DUSEJEXE=$(USEJEXE) \
+ -DGETTEXTJEXEDIR=\"$(pkglibdir)\" \
+ -DGETTEXTJAR=\"$(jardir)/gettext.jar\" \
+ -DLIBDIR=\"$(libdir)\" \
+ -DGETTEXTDATADIR=\"$(pkgdatadir)\" \
+ -DPROJECTSDIR=\"$(projectsdir)\" @DEFS@
LDADD = ../lib/libgettextlib.la @LTLIBINTL@
SED = sed
LIBUNINAME = ../libuniname/libuniname.a
# Source dependencies.
-gettext_SOURCES = gettext.c
-ngettext_SOURCES = ngettext.c
msgcmp_SOURCES = msgcmp.c
msgfmt_SOURCES = msgfmt.c write-mo.c write-java.c write-tcl.c plural-eval.c
msgmerge_SOURCES = msgmerge.c
libgettextsrc.la -lc -no-undefined
# Link dependencies.
-gettext_LDADD = ../lib/basename.lo ../lib/error.lo ../lib/getopt.lo ../lib/getopt1.lo ../lib/strtoul.lo ../lib/xmalloc.lo @LTLIBINTL@
-ngettext_LDADD = ../lib/basename.lo ../lib/error.lo ../lib/getopt.lo ../lib/getopt1.lo ../lib/strtoul.lo ../lib/xmalloc.lo @LTLIBINTL@
msgcmp_LDADD = libgettextsrc.la
msgfmt_LDADD = libgettextsrc.la
msgmerge_LDADD = libgettextsrc.la
# Special rules for installation of auxiliary programs.
install-exec-local:
- $(mkinstalldirs) $(DESTDIR)$(libdir)/$(PACKAGE)
- $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) hostname$(EXEEXT) $(DESTDIR)$(libdir)/$(PACKAGE)/hostname$(EXEEXT)
- $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) urlget$(EXEEXT) $(DESTDIR)$(libdir)/$(PACKAGE)/urlget$(EXEEXT)
- $(INSTALL_SCRIPT) user-email $(DESTDIR)$(libdir)/$(PACKAGE)/user-email
- $(INSTALL_SCRIPT) $(srcdir)/project-id $(DESTDIR)$(libdir)/$(PACKAGE)/project-id
+ $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
+ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) hostname$(EXEEXT) $(DESTDIR)$(pkglibdir)/hostname$(EXEEXT)
+ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) urlget$(EXEEXT) $(DESTDIR)$(pkglibdir)/urlget$(EXEEXT)
+ $(INSTALL_SCRIPT) user-email $(DESTDIR)$(pkglibdir)/user-email
+ $(INSTALL_SCRIPT) $(srcdir)/project-id $(DESTDIR)$(pkglibdir)/project-id
installdirs-local:
- $(mkinstalldirs) $(DESTDIR)$(libdir)/$(PACKAGE)
+ $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
uninstall-local:
- $(RM) $(DESTDIR)$(libdir)/$(PACKAGE)/hostname$(EXEEXT)
- $(RM) $(DESTDIR)$(libdir)/$(PACKAGE)/urlget$(EXEEXT)
- $(RM) $(DESTDIR)$(libdir)/$(PACKAGE)/user-email
- $(RM) $(DESTDIR)$(libdir)/$(PACKAGE)/project-id
+ $(RM) $(DESTDIR)$(pkglibdir)/hostname$(EXEEXT)
+ $(RM) $(DESTDIR)$(pkglibdir)/urlget$(EXEEXT)
+ $(RM) $(DESTDIR)$(pkglibdir)/user-email
+ $(RM) $(DESTDIR)$(pkglibdir)/project-id
DISTCLEANFILES += user-email
install-exec-local: install-exec-java-@BUILDJAVAEXE@
install-exec-java-yes: all-java-yes
- $(mkinstalldirs) $(DESTDIR)$(libdir)/$(PACKAGE)
- $(INSTALL_PROGRAM) gnu.gettext.DumpResource$(EXEEXT) $(DESTDIR)$(libdir)/$(PACKAGE)/gnu.gettext.DumpResource$(EXEEXT)
- $(INSTALL_PROGRAM) gnu.gettext.GetURL$(EXEEXT) $(DESTDIR)$(libdir)/$(PACKAGE)/gnu.gettext.GetURL$(EXEEXT)
+ $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
+ $(INSTALL_PROGRAM) gnu.gettext.DumpResource$(EXEEXT) $(DESTDIR)$(pkglibdir)/gnu.gettext.DumpResource$(EXEEXT)
+ $(INSTALL_PROGRAM) gnu.gettext.GetURL$(EXEEXT) $(DESTDIR)$(pkglibdir)/gnu.gettext.GetURL$(EXEEXT)
install-exec-java-no:
install-data-local: install-data-java-@BUILDJAVAEXE@
installdirs-local: installdirs-java-@BUILDJAVAEXE@
installdirs-java-yes:
- $(mkinstalldirs) $(DESTDIR)$(libdir)/$(PACKAGE)
+ $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
installdirs-java-no: installdirs-java-no-@BUILDJAVA@
installdirs-java-no-yes:
$(mkinstalldirs) $(DESTDIR)$(jardir)
uninstall-local: uninstall-java-@BUILDJAVAEXE@
uninstall-java-yes:
- $(RM) $(DESTDIR)$(libdir)/$(PACKAGE)/gnu.gettext.DumpResource$(EXEEXT)
- $(RM) $(DESTDIR)$(libdir)/$(PACKAGE)/gnu.gettext.GetURL$(EXEEXT)
+ $(RM) $(DESTDIR)$(pkglibdir)/gnu.gettext.DumpResource$(EXEEXT)
+ $(RM) $(DESTDIR)$(pkglibdir)/gnu.gettext.GetURL$(EXEEXT)
uninstall-java-no: uninstall-java-no-@BUILDJAVA@
uninstall-java-no-yes:
$(RM) $(DESTDIR)$(jardir)/gettext.jar
/* Expression parsing for plural form selection.
- Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+ Copyright (C) 2000-2001, 2003 Free Software Foundation, Inc.
Written by Ulrich Drepper <drepper@cygnus.com>, 2000.
This program is free software; you can redistribute it and/or modify
/* Include the expression parsing code from libintl, with different function
names. */
-#include "../intl/plural.c"
-#include "../intl/plural-exp.c"
+#include "../../gettext-runtime/intl/plural.c"
+#include "../../gettext-runtime/intl/plural-exp.c"
# hostname on some systems (SVR3.2, old Linux) returns a bogus exit status,
# so uname gets run too, so we keep only the first line of output.
#host=`(hostname || uname -n) 2>/dev/null | sed 1q`
-host=`@libdir@/@PACKAGE@/hostname --short 2>/dev/null | sed 1q`
+host=`@libdir@/gettext/hostname --short 2>/dev/null | sed 1q`
# Find the hostname.
-hostfqdn=`@libdir@/@PACKAGE@/hostname --fqdn 2>/dev/null | sed 1q`
+hostfqdn=`@libdir@/gettext/hostname --fqdn 2>/dev/null | sed 1q`
# Find a list of email addresses from various mailer configuration files.
# All mailers use configuration files under $HOME. We handle them in a
-## Makefile for the check subdirectory of the GNU NLS Utilities
+## Makefile for the gettext-tools/tests subdirectory of GNU gettext
## Copyright (C) 1995-1997, 2001-2003 Free Software Foundation, Inc.
##
## This program is free software; you can redistribute it and/or modify
format-tcl-1 format-tcl-2 \
format-ycp-1 format-ycp-2 \
plural-1 plural-2 \
- lang-c lang-c++ lang-objc lang-python lang-clisp lang-elisp lang-librep lang-smalltalk lang-java lang-gawk lang-pascal lang-ycp lang-tcl lang-php lang-po lang-rst \
- rpath-1a rpath-1b \
- rpath-2aaa rpath-2aab rpath-2aac rpath-2aad \
- rpath-2aba rpath-2abb rpath-2abc rpath-2abd \
- rpath-2baa rpath-2bab rpath-2bac rpath-2bad \
- rpath-2bba rpath-2bbb rpath-2bbc rpath-2bbd \
- rpath-3aaa rpath-3aab rpath-3aac rpath-3aad \
- rpath-3aaf rpath-3aah \
- rpath-3aba rpath-3abb rpath-3abc rpath-3abd \
- rpath-3abf rpath-3abh \
- rpath-3baa rpath-3bab rpath-3bac rpath-3bad \
- rpath-3bae rpath-3baf rpath-3bag rpath-3bah \
- rpath-3bba rpath-3bbb rpath-3bbc rpath-3bbd \
- rpath-3bbe rpath-3bbf rpath-3bbg rpath-3bbh
+ lang-c lang-c++ lang-objc lang-sh lang-bash lang-python lang-clisp \
+ lang-elisp lang-librep lang-smalltalk lang-java lang-gawk lang-pascal \
+ lang-wxwindows lang-ycp lang-tcl lang-perl lang-php lang-pike lang-po \
+ lang-rst
EXTRA_DIST = $(TESTS) \
test.mo xg-test1.ok.po mex-test2.ok msguniq-a.in msguniq-a.out \
- rpathx/configure.in rpathx/aclocal.m4 rpathx/configure \
- rpathx/Makefile.am rpathx/Makefile.in rpathx/rpathx.c \
- rpathy/configure.in rpathy/aclocal.m4 rpathy/configure \
- rpathy/Makefile.am rpathy/Makefile.in rpathy/rpathy.c \
- rpathz/configure.in rpathz/aclocal.m4 rpathz/configure \
- rpathz/Makefile.am rpathz/Makefile.in rpathz/rpathz.c \
- rpathlx/configure.in rpathlx/aclocal.m4 rpathlx/configure \
- rpathlx/Makefile.am rpathlx/Makefile.in rpathlx/usex.c \
- rpathly/configure.in rpathly/aclocal.m4 rpathly/configure \
- rpathly/Makefile.am rpathly/Makefile.in rpathly/usey.c \
- rpathlyx/configure.in rpathlyx/aclocal.m4 rpathlyx/configure \
- rpathlyx/Makefile.am rpathlyx/Makefile.in rpathlyx/usey.c \
- rpathlz/configure.in rpathlz/aclocal.m4 rpathlz/configure \
- rpathlz/Makefile.am rpathlz/Makefile.in rpathlz/usez.c \
- rpathlzyx/configure.in rpathlzyx/aclocal.m4 rpathlzyx/configure \
- rpathlzyx/Makefile.am rpathlzyx/Makefile.in rpathlzyx/usez.c \
- rpath-1 rpath-2_a rpath-2_b rpath-3_a rpath-3_b rpath.README \
- rpath-3aae rpath-3aag rpath-3abe rpath-3abg \
- rpathcfg.sh
+ ChangeLog.0
XGETTEXT = ../src/xgettext
CONFIG_SHELL='$(SHELL)' \
$(SHELL)
-xg-test1.ok.po: $(top_srcdir)/src/xgettext.c $(top_srcdir)/src/msgfmt.c \
- $(top_srcdir)/src/gettext.c
+xg-test1.ok.po: $(top_srcdir)/src/xgettext.c $(top_srcdir)/src/msgfmt.c
$(XGETTEXT) -d xg-test1.ok -p $(srcdir) \
-k_ --omit-header --no-location \
- $(top_srcdir)/src/xgettext.c $(top_srcdir)/src/msgfmt.c \
- $(top_srcdir)/src/gettext.c
+ $(top_srcdir)/src/xgettext.c $(top_srcdir)/src/msgfmt.c
# Three auxiliary programs used by the tests.
-INCLUDES = -I.. -I../lib -I$(top_srcdir)/lib -I$(top_srcdir)/intl
+INCLUDES = \
+ -I.. \
+ -I../lib -I$(top_srcdir)/lib \
+ -I$(top_srcdir)/../gettext-runtime/intl
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
LDADD = $(LDADD_@USE_INCLUDED_LIBINTL@)
LDADD_yes = ../intl/libintl.la
fc3_LDADD = ../lib/libgettextlib.la $(LDADD)
fc4_SOURCES = format-c-4-prg.c setlocale.c
fc4_LDADD = ../lib/libgettextlib.la $(LDADD)
-
-# Help maintaining config.rpath.
-rpathcfg: rpathcfg.sh
- top_srcdir=$(top_srcdir) \
- CONFIG_SHELL='$(SHELL)' \
- CC='@CC@' GCC='@GCC@' \
- LDFLAGS='@LDFLAGS@' \
- LD='@LD@' with_gnu_ld='@with_gnu_ld@' \
- host='@host@' \
- $(SHELL) $(srcdir)/rpathcfg.sh > rpathcfg 2> rpathcfg.log
-MOSTLYCLEANFILES = rpathcfg rpathcfg.log
tmpfiles="$tmpfiles prog.${OBJEXT} prog${EXEEXT}"
# Compile in two steps from .cc to .o and from .o to 'prog'. This way,
# relinking is faster because doesn't need to redo the first step.
-${CXX} ${CXXFLAGS} ${CPPFLAGS} -c prog.cc -I.. -I$top_srcdir/libasprintf -I$top_srcdir/lib -I../intl \
+${CXX} ${CXXFLAGS} ${CPPFLAGS} -c prog.cc -I.. -I$top_srcdir/../gettext-runtime/libasprintf -I$top_srcdir/lib -I../intl \
|| exit 1
-${LIBTOOL} --quiet --mode=link ${CXX} ${CXXFLAGS} ${LDFLAGS} -o prog prog.${OBJEXT} ../libasprintf/libasprintf.la ../lib/libgettextlib.la ${LTLIBINTL} \
+${LIBTOOL} --quiet --mode=link ${CXX} ${CXXFLAGS} ${LDFLAGS} -o prog prog.${OBJEXT} ../../gettext-runtime/libasprintf/libasprintf.la ../lib/libgettextlib.la ${LTLIBINTL} \
|| exit 1
tmpfiles="$tmpfiles prog.pot"
tmpfiles="$tmpfiles Program.class"
: ${JAVACOMP="/bin/sh ../lib/javacomp.sh"}
-CLASSPATH=../intl-java/libintl.jar ${JAVACOMP} -d . Program.java || exit 1
+CLASSPATH=../../gettext-runtime/intl-java/libintl.jar ${JAVACOMP} -d . Program.java || exit 1
tmpfiles="$tmpfiles prog.pot"
: ${XGETTEXT=xgettext}
EOF
: ${JAVAEXEC="/bin/sh ../lib/javaexec.sh"}
-LANGUAGE= LC_ALL=fr_FR CLASSPATH=.:../intl-java/libintl.jar ${JAVAEXEC} Program 2 > prog.out || exit 1
+LANGUAGE= LC_ALL=fr_FR CLASSPATH=.:../../gettext-runtime/intl-java/libintl.jar ${JAVAEXEC} Program 2 > prog.out || exit 1
${DIFF} prog.ok prog.out || exit 1
rm -fr $tmpfiles
tmpfiles="$tmpfiles xg-test1.po"
: ${XGETTEXT=xgettext}
${XGETTEXT} -d xg-test1 -k_ --omit-header --no-location \
- $top_srcdir/src/xgettext.c $top_srcdir/src/msgfmt.c $top_srcdir/src/gettext.c
+ $top_srcdir/src/xgettext.c $top_srcdir/src/msgfmt.c
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
: ${DIFF=diff}
rm -f zero-domain.po
: ${XGETTEXT=xgettext}
LC_MESSAGES=C LC_ALL= \
-${XGETTEXT} -k_ -d zero-domain -x $top_srcdir/po/gettext.pot \
+${XGETTEXT} -k_ -d zero-domain -x $top_srcdir/po/gettext-tools.pot \
$top_srcdir/src/xgettext.c >xg-test3.err 2>&1
result=$?
cat xg-test3.err | grep -v 'warning: Charset' | grep -v '^ '