]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Add support for generic XML files
authorDaiki Ueno <ueno@gnu.org>
Wed, 30 Sep 2015 06:40:26 +0000 (15:40 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 15 Oct 2015 03:59:38 +0000 (12:59 +0900)
commita5ad7397cdd047e6f6cc5f1c0c3b8ef0d84ba301
treefa484b2dfa7dc43871da0edd4c0aba67c0979d13
parent767ec35d1f36ccf707fc3fcd29b401b60ef4b7d7
xgettext: Add support for generic XML files

* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add trim module.
* gettext-tools/src/locating-rule.h: New file.
* gettext-tools/src/locating-rule.c: New file.
* gettext-tools/src/its.h: New file.
* gettext-tools/src/its.c: New file.
* gettext-tools/src/xgettext.c: Include "locating-rule.h" and "its.h".
(its_locators): New variable.
(long_options): Add --itstool option.
(extract_from_xml_file): New function.
(main): Handle --itstool option.
(usage): Document --itstool option.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add locating-rule.h
and its.h.
(libgettextsrc_la_CPPFLAGS): Add $(INCXML).
(libgettextsrc_la_SOURCES): Add locating-rule.c and its.c.
* gettext-tools/Makefile.am (SUBDIRS): Add its directory.
* gettext-tools/configure.ac: Output its/Makefile.
* gettext-tools/doc/gettext.texi (Preparing ITS Rules): New section.
* gettext-tools/doc/xgettext.texi: Mention --itstool option.
* gettext-tools/tests/Makefile.am (TESTS): Add new tests.
* gettext-tools/tests/xgettext-its-1: New file
* gettext-tools/tests/init-env.in: Set GETTEXTDATADIR for ITS tests.
15 files changed:
autogen.sh
gettext-tools/Makefile.am
gettext-tools/configure.ac
gettext-tools/doc/gettext.texi
gettext-tools/doc/xgettext.texi
gettext-tools/its/Makefile.am [new file with mode: 0644]
gettext-tools/src/Makefile.am
gettext-tools/src/its.c [new file with mode: 0644]
gettext-tools/src/its.h [new file with mode: 0644]
gettext-tools/src/locating-rule.c [new file with mode: 0644]
gettext-tools/src/locating-rule.h [new file with mode: 0644]
gettext-tools/src/xgettext.c
gettext-tools/tests/Makefile.am
gettext-tools/tests/init-env.in
gettext-tools/tests/xgettext-its-1 [new file with mode: 0755]