(install-data-yes, uninstall-data-yes):
authorJim Meyering <jim@meyering.net>
Wed, 2 Jan 2002 19:59:44 +0000 (19:59 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 2 Jan 2002 19:59:44 +0000 (19:59 +0000)
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

index a1943c5..5f2c957 100644 (file)
@@ -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