annotate po/Rules-quot @ 883:e6d51d079a46 trunk

[svn] - aosd: use a single ghosd object for all of the osd showups; this will be a lot gentler to XLib and should definitely help with stability
author giacomo
date Tue, 20 Mar 2007 18:55:57 -0700
parents 6bb98fbbae04
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
390
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
1 # Special Makefile rules for English message catalogs with quotation marks.
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
2
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
3 DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
4
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
5 .SUFFIXES: .insert-header .po-update-en
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
6
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
7 en@quot.po-create:
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
8 $(MAKE) en@quot.po-update
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
9 en@boldquot.po-create:
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
10 $(MAKE) en@boldquot.po-update
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
11
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
12 en@quot.po-update: en@quot.po-update-en
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
13 en@boldquot.po-update: en@boldquot.po-update-en
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
14
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
15 .insert-header.po-update-en:
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
16 @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
17 if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
18 tmpdir=`pwd`; \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
19 echo "$$lang:"; \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
20 ll=`echo $$lang | sed -e 's/@.*//'`; \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
21 LC_ALL=C; export LC_ALL; \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
22 cd $(srcdir); \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
23 if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -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 \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
24 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
25 rm -f $$tmpdir/$$lang.new.po; \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
26 else \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
27 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
28 :; \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
29 else \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
30 echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
31 exit 1; \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
32 fi; \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
33 fi; \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
34 else \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
35 echo "creation of $$lang.po failed!" 1>&2; \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
36 rm -f $$tmpdir/$$lang.new.po; \
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
37 fi
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
38
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
39 en@quot.insert-header: insert-header.sin
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
40 sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
41
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
42 en@boldquot.insert-header: insert-header.sin
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
43 sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
44
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
45 mostlyclean: mostlyclean-quot
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
46 mostlyclean-quot:
6bb98fbbae04 [svn] - translation framework
nenolod
parents:
diff changeset
47 rm -f *.insert-header