annotate po/Rules-quot @ 2001:97e5147a6812 trunk

[svn] - remove vfs_stdio.c
author nenolod
date Thu, 23 Nov 2006 20:21:49 -0800
parents cb178e5ad177
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 # Special Makefile rules for English message catalogs with quotation marks.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3 DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5 .SUFFIXES: .insert-header .po-update-en
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 en@quot.po-update: en@quot.po-update-en
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8 en@boldquot.po-update: en@boldquot.po-update-en
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10 .insert-header.po-update-en:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 tmpdir=`pwd`; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 echo "$$lang:"; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 ll=`echo $$lang | sed -e 's/@.*//'`; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 LC_ALL=C; export LC_ALL; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 cd $(srcdir); \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 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 \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 rm -f $$tmpdir/$$lang.new.po; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21 else \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23 :; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24 else \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25 echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26 exit 1; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29 else \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 echo "creation of $$lang.po failed!" 1>&2; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31 rm -f $$tmpdir/$$lang.new.po; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34 en@quot.insert-header: insert-header.sin
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 en@boldquot.insert-header: insert-header.sin
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38 sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40 mostlyclean: mostlyclean-quot
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41 mostlyclean-quot:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 rm -f *.insert-header