$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; \