0008-Makefile-avoid-using-install-D.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From 02b5a6d9a407daebe903fe64fb1b22673aaa7e92 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= <noltari@gmail.com>
  3. Date: Thu, 26 Feb 2015 12:51:23 +0100
  4. Subject: [PATCH 08/14] Makefile: avoid using install -D
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. OS X and FreeBSD are not compatible with this option
  9. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
  10. Signed-off-by: Andreas Bombe <aeb@debian.org>
  11. ---
  12. Makefile | 6 ++++--
  13. 1 file changed, 4 insertions(+), 2 deletions(-)
  14. diff --git a/Makefile b/Makefile
  15. index d25510f..1593f3d 100644
  16. --- a/Makefile
  17. +++ b/Makefile
  18. @@ -62,7 +62,8 @@ install-man:
  19. for MANPAGE in manpages/en/*; \
  20. do \
  21. SECTION="8"; \
  22. - install -D -m 0644 $${MANPAGE} $(DESTDIR)/$(MANDIR)/man$${SECTION}/$$(basename $${MANPAGE}); \
  23. + mkdir -p $(DESTDIR)/$(MANDIR)/man$${SECTION}/; \
  24. + install -m 0644 $${MANPAGE} $(DESTDIR)/$(MANDIR)/man$${SECTION}/$$(basename $${MANPAGE}); \
  25. done
  26. for LANGUAGE in $(LANGUAGES); \
  27. @@ -70,7 +71,8 @@ install-man:
  28. for MANPAGE in manpages/$${LANGUAGE}/*; \
  29. do \
  30. SECTION="8"; \
  31. - install -D -m 0644 $${MANPAGE} $(DESTDIR)/$(MANDIR)/$${LANGUAGE}/man$${SECTION}/$$(basename $${MANPAGE} .$${LANGUAGE}.$${SECTION}).$${SECTION}; \
  32. + mkdir -p $(DESTDIR)/$(MANDIR)/$${LANGUAGE}/man$${SECTION}/; \
  33. + install -m 0644 $${MANPAGE} $(DESTDIR)/$(MANDIR)/$${LANGUAGE}/man$${SECTION}/$$(basename $${MANPAGE} .$${LANGUAGE}.$${SECTION}).$${SECTION}; \
  34. done; \
  35. done
  36. install-symlinks: install-bin install-man
  37. --
  38. 1.9.1