514302705fcf981afbd2064fa4189ce41a452818
[live-boot-grml.git] / debian / patches / 28_remove_localized_manpages.patch
1 commit ebdefd9601c017c5a7264a94cee2c7af914bca76
2 Author: Michael Prokop <mika@grml.org>
3 Date:   Wed Jun 8 10:19:29 2011 +0200
4
5     Drop installation of localized manpages from upstream Makefile.
6     
7     Upstream's Makefile currently results in:
8     
9       E: live-boot: manpage-in-wrong-directory usr/share/man/en/man/live-boot.7..gz
10       E: live-boot: manpage-in-wrong-directory usr/share/man/en/man/live-snapshot.1..gz
11     
12     So lets drop the localized manpages and just install the english ones.
13
14 diff --git a/Makefile b/Makefile
15 index 4e579a3..46de269 100644
16 --- a/Makefile
17 +++ b/Makefile
18 @@ -66,15 +66,6 @@ install:
19                 install -D -m 0644 $${MANPAGE} $(DESTDIR)/usr/share/man/man$${SECTION}/$$(basename $${MANPAGE}); \
20         done
21  
22 -       for LANGUAGE in $(LANGUAGES); \
23 -       do \
24 -               for MANPAGE in manpages/$${LANGUAGE}/*; \
25 -               do \
26 -                       SECTION="$$(basename $${MANPAGE} | awk -F. '{ print $$3 }')"; \
27 -                       install -D -m 0644 $${MANPAGE} $(DESTDIR)/usr/share/man/$${LANGUAGE}/man$${SECTION}/$$(basename $${MANPAGE} .$${LANGUAGE}.$${SECTION}).$${SECTION}; \
28 -               done; \
29 -       done
30 -
31  uninstall:
32         # Uninstalling executables
33         rm -f $(DESTDIR)/sbin/live-snapshot $(DESTDIR)/sbin/live-swapfile