Revert "Drop installation of localized manpages from upstream Makefile."
authorUlrich Dangel <mru@grml.org>
Sun, 12 Jun 2011 01:07:42 +0000 (03:07 +0200)
committerUlrich Dangel <mru@grml.org>
Mon, 13 Jun 2011 00:47:22 +0000 (02:47 +0200)
This reverts commit ebdefd9601c017c5a7264a94cee2c7af914bca76.

This patch is now included in a extra quilt patch file.

Makefile

index 46de269..4e579a3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -66,6 +66,15 @@ install:
                install -D -m 0644 $${MANPAGE} $(DESTDIR)/usr/share/man/man$${SECTION}/$$(basename $${MANPAGE}); \
        done
 
+       for LANGUAGE in $(LANGUAGES); \
+       do \
+               for MANPAGE in manpages/$${LANGUAGE}/*; \
+               do \
+                       SECTION="$$(basename $${MANPAGE} | awk -F. '{ print $$3 }')"; \
+                       install -D -m 0644 $${MANPAGE} $(DESTDIR)/usr/share/man/$${LANGUAGE}/man$${SECTION}/$$(basename $${MANPAGE} .$${LANGUAGE}.$${SECTION}).$${SECTION}; \
+               done; \
+       done
+
 uninstall:
        # Uninstalling executables
        rm -f $(DESTDIR)/sbin/live-snapshot $(DESTDIR)/sbin/live-swapfile