blob: 6a39a3f7207c0f14ae30aa50389deda8b850e324 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
$NetBSD: patch-ag,v 1.6 2003/10/20 09:35:06 agc Exp $
Apply fix from Kouichirou Hiratsuka in PR 22348
--- po/Makefile.in.in 2003/10/20 09:29:50 1.1
+++ po/Makefile.in.in 2003/10/20 09:29:57
@@ -120,11 +120,15 @@
catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
if test "`echo $$cat | sed 's/.*\(\..*\)/\1/'`" = ".gmo"; then \
+ if test $(gnulocaledir) = $(localedir) -a \
+ $(CATOBJEXT) != ".gmo"; then \
+ continue; \
+ fi; \
destdir=$(gnulocaledir); \
else \
destdir=$(localedir); \
fi; \
- lang=`echo $$cat | sed 's/$(CATOBJEXT)$$//'`; \
+ lang=`echo $$cat | sed 's/\(.*\)\.[^\.]*/\1/'`; \
dir=$$destdir/$$lang/LC_MESSAGES; \
$(top_srcdir)/mkinstalldirs $$dir; \
if test -r $$cat; then \
@@ -144,7 +148,7 @@
uninstall:
catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
- lang=`echo $$cat | sed 's/$(CATOBJEXT)$$//'`; \
+ lang=`echo $$cat | sed 's/\(.*\)\.[^\.]*/\1/'`; \
rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
done
@@ -180,7 +184,7 @@
cd $(srcdir); \
catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
- lang=`echo $$cat | sed 's/$(CATOBJEXT)$$//'`; \
+ lang=`echo $$cat | sed 's/\(.*\)\.[^\.]*/\1/'`; \
mv $$lang.po $$lang.old.po; \
if $(TUPDATE) $(PACKAGE).pot $$lang.old.po > $$lang.po; then \
rm -f $$lang.old.po; \
|