From 26802588fa0d65b827ff27b15da9d6c0ebc5d425 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 2 Jan 2002 19:59:44 +0000 Subject: (install-data-yes, uninstall-data-yes): Install the LC_TIME locale category as an alias for LC_MESSAGES. This fixes a bug introduced in the 2001-09-22 upgrade to gettext 0.10.40. --- po/Makefile.in.in | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'po') diff --git a/po/Makefile.in.in b/po/Makefile.in.in index a1943c523..5f2c9578d 100644 --- a/po/Makefile.in.in +++ b/po/Makefile.in.in @@ -107,6 +107,18 @@ install-data-yes: all echo "installing $(srcdir)/$$cat as" \ "$(DESTDIR)$$dir/$(PACKAGE).mo"; \ fi; \ + timedir=$(localedir)/$$lang/LC_TIME; \ + case "`ls -ld $(DESTDIR)$$timedir 2>/dev/null`" in \ + */'LC_TIME -> LC_MESSAGES') ;; \ + *) \ + rm -fr $(DESTDIR)$$timedir; \ + ln -s LC_MESSAGES $(DESTDIR)$$timedir \ + || { $(mkinstalldirs) $(DESTDIR)$$timedir \ + && { ln $(DESTDIR)$$dir/* $(DESTDIR)$$timedir \ + || cp $(DESTDIR)$$dir/* $(DESTDIR)$$timedir; }; }; \ + echo "installing $(DESTDIR)$$timedir as" \ + "an alias for $(DESTDIR)$$dir";; \ + esac; \ done # Define this as empty until I found a useful application. @@ -126,7 +138,8 @@ uninstall-data-yes: for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed 's/\.gmo$$//'`; \ - rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE).mo; \ + rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE).mo \ + $(DESTDIR)$(localedir)/$$lang/LC_TIME/$(PACKAGE).mo; \ done check: all -- cgit v1.2.3-70-g09d2