diff options
author | Jim Meyering <jim@meyering.net> | 2002-01-02 19:59:44 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-01-02 19:59:44 +0000 |
commit | 26802588fa0d65b827ff27b15da9d6c0ebc5d425 (patch) | |
tree | 0fb164be71f43ec34d1d93e6f46a3d62a5eafd19 /po | |
parent | d8a4f42f8c10fd5e1a633978e0284c80db9c240c (diff) | |
download | coreutils-26802588fa0d65b827ff27b15da9d6c0ebc5d425.tar.xz |
(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.
Diffstat (limited to 'po')
-rw-r--r-- | po/Makefile.in.in | 15 |
1 files changed, 14 insertions, 1 deletions
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 |