summaryrefslogtreecommitdiffstats
path: root/gettext-tools/po
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2014-04-21 17:58:41 +0900
committerDaiki Ueno <ueno@gnu.org>2014-04-21 17:58:41 +0900
commit1431ba78ad26de5e9826e14586c6be0fde314ca9 (patch)
treee0e1e3bfb9297eb1a6cc0f3a17f92b82098c0d44 /gettext-tools/po
parent17fc629f733da759d1b42efa359991572e6e65c5 (diff)
downloadexternal_gettext-1431ba78ad26de5e9826e14586c6be0fde314ca9.zip
external_gettext-1431ba78ad26de5e9826e14586c6be0fde314ca9.tar.gz
external_gettext-1431ba78ad26de5e9826e14586c6be0fde314ca9.tar.bz2
Rules-quot: Use built-in quot filter if possible
Diffstat (limited to 'gettext-tools/po')
-rw-r--r--gettext-tools/po/ChangeLog8
-rw-r--r--gettext-tools/po/Rules-quot13
2 files changed, 20 insertions, 1 deletions
diff --git a/gettext-tools/po/ChangeLog b/gettext-tools/po/ChangeLog
index 2868c19..98ed781 100644
--- a/gettext-tools/po/ChangeLog
+++ b/gettext-tools/po/ChangeLog
@@ -1,3 +1,11 @@
+2014-04-21 Daiki Ueno <ueno@gnu.org>
+
+ * Rules-quot: Use built-in filter if possible.
+
+2014-04-02 Daiki Ueno <ueno@gnu.org>
+
+ * Rules-quot: Add a license notice.
+
2013-07-04 Daiki Ueno <ueno@gnu.org>
* bg.po: Update from Roumen Petrov <transl@roumenpetrov.info>.
diff --git a/gettext-tools/po/Rules-quot b/gettext-tools/po/Rules-quot
index 5931e53..7b92c7e 100644
--- a/gettext-tools/po/Rules-quot
+++ b/gettext-tools/po/Rules-quot
@@ -1,3 +1,4 @@
+# This file, Rules-quot, can be copied and used freely without restrictions.
# Special Makefile rules for English message catalogs with quotation marks.
DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
@@ -20,7 +21,17 @@ en@boldquot.po-update: en@boldquot.po-update-en
ll=`echo $$lang | sed -e 's/@.*//'`; \
LC_ALL=C; export LC_ALL; \
cd $(srcdir); \
- if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) $(SED) -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \
+ if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null \
+ | $(SED) -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | \
+ { case `$(MSGFILTER) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
+ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-8] | 0.1[0-8].*) \
+ $(MSGFILTER) $(SED) -f `echo $$lang | sed -e 's/.*@//'`.sed \
+ ;; \
+ *) \
+ $(MSGFILTER) `echo $$lang | sed -e 's/.*@//'` \
+ ;; \
+ esac } 2>/dev/null > $$tmpdir/$$lang.new.po \
+ ; then \
if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
rm -f $$tmpdir/$$lang.new.po; \
else \