aboutsummaryrefslogtreecommitdiff
path: root/po/Rules-quot
diff options
context:
space:
mode:
Diffstat (limited to 'po/Rules-quot')
-rw-r--r--po/Rules-quot58
1 files changed, 58 insertions, 0 deletions
diff --git a/po/Rules-quot b/po/Rules-quot
new file mode 100644
index 00000000..baf65285
--- /dev/null
+++ b/po/Rules-quot
@@ -0,0 +1,58 @@
1# This file, Rules-quot, can be copied and used freely without restrictions.
2# Special Makefile rules for English message catalogs with quotation marks.
3
4DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
5
6.SUFFIXES: .insert-header .po-update-en
7
8en@quot.po-create:
9 $(MAKE) en@quot.po-update
10en@boldquot.po-create:
11 $(MAKE) en@boldquot.po-update
12
13en@quot.po-update: en@quot.po-update-en
14en@boldquot.po-update: en@boldquot.po-update-en
15
16.insert-header.po-update-en:
17 @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
18 if test "$(PACKAGE)" = "gettext-tools" && test "$(CROSS_COMPILING)" != "yes"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
19 tmpdir=`pwd`; \
20 echo "$$lang:"; \
21 ll=`echo $$lang | sed -e 's/@.*//'`; \
22 LC_ALL=C; export LC_ALL; \
23 cd $(srcdir); \
24 if $(MSGINIT) $(MSGINIT_OPTIONS) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null \
25 | $(SED) -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | \
26 { case `$(MSGFILTER) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
27 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-8] | 0.1[0-8].*) \
28 $(MSGFILTER) $(SED) -f `echo $$lang | sed -e 's/.*@//'`.sed \
29 ;; \
30 *) \
31 $(MSGFILTER) `echo $$lang | sed -e 's/.*@//'` \
32 ;; \
33 esac } 2>/dev/null > $$tmpdir/$$lang.new.po \
34 ; then \
35 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
36 rm -f $$tmpdir/$$lang.new.po; \
37 else \
38 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
39 :; \
40 else \
41 echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
42 exit 1; \
43 fi; \
44 fi; \
45 else \
46 echo "creation of $$lang.po failed!" 1>&2; \
47 rm -f $$tmpdir/$$lang.new.po; \
48 fi
49
50en@quot.insert-header: insert-header.sin
51 sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
52
53en@boldquot.insert-header: insert-header.sin
54 sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
55
56mostlyclean: mostlyclean-quot
57mostlyclean-quot:
58 rm -f *.insert-header