Fix patch offsets for quilt patches
[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 --- a/Makefile
15 +++ b/Makefile
16 @@ -66,15 +66,6 @@
17                 install -D -m 0644 $${MANPAGE} $(DESTDIR)/usr/share/man/man$${SECTION}/$$(basename $${MANPAGE}); \
18         done
19  
20 -       for LANGUAGE in $(LANGUAGES); \
21 -       do \
22 -               for MANPAGE in manpages/$${LANGUAGE}/*; \
23 -               do \
24 -                       SECTION="$$(basename $${MANPAGE} | awk -F. '{ print $$3 }')"; \
25 -                       install -D -m 0644 $${MANPAGE} $(DESTDIR)/usr/share/man/$${LANGUAGE}/man$${SECTION}/$$(basename $${MANPAGE} .$${LANGUAGE}.$${SECTION}).$${SECTION}; \
26 -               done; \
27 -       done
28 -
29  uninstall:
30         # Uninstalling executables
31         rm -f $(DESTDIR)/sbin/live-snapshot $(DESTDIR)/sbin/live-swapfile