aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Konno <joe.konno@intel.com>2016-08-03 13:59:44 -0700
committerJoe Konno <joe.konno@intel.com>2016-08-04 08:52:49 -0700
commitc0bb3d79f3e4517cc3036f9924a4fbe7b983c7e4 (patch)
treea31b735487914692e90bccce74b3f519dc4117f8
parentfadd7a020c055a8be08d6fb1270e621fb1a64db2 (diff)
gettext: run gettextize-0.18.2
Ran gettextize from gettext-0.18.2 to clean up some annoying configuration warnings. Also, allow m4 and po changelogs to be created, especially to help folks concerned with the particulars of string translation. Signed-off-by: Joe Konno <joe.konno@intel.com>
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac2
-rw-r--r--m4/ChangeLog11
-rw-r--r--po/ChangeLog11
-rw-r--r--po/Makefile.in.in19
5 files changed, 39 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index 819441e..b519d11 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,6 +8,8 @@ SUBDIRS = \
doc
EXTRA_DIST = \
+ config.rpath \
+ m4/ChangeLog \
README \
TODO \
Android.mk \
diff --git a/configure.ac b/configure.ac
index 4681c9e..646b402 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,7 +24,7 @@ GETTEXT_PACKAGE=powertop
AC_SUBST([GETTEXT_PACKAGE])
AM_SILENT_RULES([yes])
AM_GNU_GETTEXT([external])
-AM_GNU_GETTEXT_VERSION([0.18])
+AM_GNU_GETTEXT_VERSION([0.18.2])
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
# Checks for programs.
diff --git a/m4/ChangeLog b/m4/ChangeLog
new file mode 100644
index 0000000..f415dc0
--- /dev/null
+++ b/m4/ChangeLog
@@ -0,0 +1,11 @@
+2016-08-03 gettextize <bug-gnu-gettext@gnu.org>
+
+ * gettext.m4: New file, from gettext-0.18.2.
+ * iconv.m4: New file, from gettext-0.18.2.
+ * lib-ld.m4: New file, from gettext-0.18.2.
+ * lib-link.m4: New file, from gettext-0.18.2.
+ * lib-prefix.m4: New file, from gettext-0.18.2.
+ * nls.m4: New file, from gettext-0.18.2.
+ * po.m4: New file, from gettext-0.18.2.
+ * progtest.m4: New file, from gettext-0.18.2.
+
diff --git a/po/ChangeLog b/po/ChangeLog
new file mode 100644
index 0000000..11de90c
--- /dev/null
+++ b/po/ChangeLog
@@ -0,0 +1,11 @@
+2016-08-03 gettextize <bug-gnu-gettext@gnu.org>
+
+ * Makefile.in.in: Upgrade to gettext-0.18.2.
+ * boldquot.sed: New file, from gettext-0.18.2.
+ * en@boldquot.header: New file, from gettext-0.18.2.
+ * en@quot.header: New file, from gettext-0.18.2.
+ * insert-header.sin: New file, from gettext-0.18.2.
+ * quot.sed: New file, from gettext-0.18.2.
+ * remove-potcdate.sin: New file, from gettext-0.18.2.
+ * Rules-quot: New file, from gettext-0.18.2.
+
diff --git a/po/Makefile.in.in b/po/Makefile.in.in
index 83d8838..fce63a6 100644
--- a/po/Makefile.in.in
+++ b/po/Makefile.in.in
@@ -8,7 +8,7 @@
# Please note that the actual code of GNU gettext is covered by the GNU
# General Public License and is *not* in the public domain.
#
-# Origin: gettext-0.18
+# Origin: gettext-0.18.2
GETTEXT_MACRO_VERSION = 0.18
PACKAGE = @PACKAGE@
@@ -96,14 +96,14 @@ CATALOGS = @CATALOGS@
mv t-$@ $@
-all: check-macro-version all-@USE_NLS@
+all: all-@USE_NLS@
all-yes: stamp-po
all-no:
# Ensure that the gettext macros and this Makefile.in.in are in sync.
-check-macro-version:
- @test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
+CHECK_MACRO_VERSION = \
+ test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
|| { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \
exit 1; \
}
@@ -123,6 +123,7 @@ check-macro-version:
# $(POFILES) has been designed to not touch files that don't need to be
# changed.
stamp-po: $(srcdir)/$(DOMAIN).pot
+ @$(CHECK_MACRO_VERSION)
test ! -f $(srcdir)/$(DOMAIN).pot || \
test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
@test ! -f $(srcdir)/$(DOMAIN).pot || { \
@@ -137,8 +138,16 @@ stamp-po: $(srcdir)/$(DOMAIN).pot
# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
+# The determination of whether the package xyz is a GNU one is based on the
+# heuristic whether some file in the top level directory mentions "GNU xyz".
+# If GNU 'find' is available, we avoid grepping through monster files.
$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
- if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null | grep -v 'libtool:' >/dev/null; then \
+ if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \
+ LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f -size -10000000c -exec grep 'GNU @PACKAGE@' /dev/null '{}' ';' 2>/dev/null; \
+ else \
+ LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null; \
+ fi; \
+ } | grep -v 'libtool:' >/dev/null; then \
package_gnu='GNU '; \
else \
package_gnu=''; \