(install-data-yes): Install LC_TIME locale
authorJim Meyering <jim@meyering.net>
Sat, 17 Mar 2001 08:53:58 +0000 (08:53 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 17 Mar 2001 08:53:58 +0000 (08:53 +0000)
for all packages, not just for fileutils.
(uninstall): Remove LC_TIME locale too.

po/Makefile.in.in

index f9b34042d5bf850cf2915fe3a73a289a8dbe7d81..ea54aaef73379664aa9cf83cde3b9db3e79697a9 100644 (file)
@@ -150,13 +150,11 @@ install-data-yes: all
              true; \
            fi; \
          fi; \
-         if test "$(PACKAGE)" = "fileutils"; then \
-           timedir=$$destdir/$$lang/LC_TIME; \
-           rm -fr $$timedir; \
-           ln -s LC_MESSAGES $$timedir \
-           || (mkdir $$timedir && ln $$dir/* $$timedir); \
-           echo "installing $$timedir as an alias for $$dir"; \
-         fi; \
+         timedir=$$destdir/$$lang/LC_TIME; \
+         rm -fr $$timedir; \
+         ln -s LC_MESSAGES $$timedir \
+         || (mkdir $$timedir && ln $$dir/* $$timedir); \
+         echo "installing $$timedir as an alias for $$dir"; \
        done
        if test "$(PACKAGE)" = "gettext"; then \
          if test -x "$(MKINSTALLDIRS)"; then \
@@ -178,10 +176,13 @@ uninstall:
        for cat in $$catalogs; do \
          cat=`basename $$cat`; \
          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
-         rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
-         rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
-         rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
-         rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
+         for dir in $(localedir) $(gnulocaledir); do \
+           for lc in LC_MESSAGES LC_TIME; do \
+             for x in '' .m; do \
+               rm -f $(DESTDIR)$$dir/$$lang/$$lc/$(PACKAGE)$(INSTOBJEXT)$$x; \
+             done; \
+           done; \
+         done; \
        done
 
 check: all