]> 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>
Fri, 4 Dec 2015 04:02:40 +0000 (13:02 +0900)
commit6fab71fdbee5bbf274d43c97fc3b7b73ad11f0aa
tree974a74ef435c6557d560ef17d40784e109a9be42
parent4d0dcc0c64d0600c72c23169862b7868f04768f2
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]