summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-08-12 18:45:20 -0400
committerDan McGee <dan@archlinux.org>2011-08-15 13:05:17 -0500
commit1741b5cc30119631940f7b471395765fb6fa7b0f (patch)
treed0bf6b100bbaf4cb1e70ba3a5f50bdb5ab7df99b /doc
parenta628feee46f2200db7d3303091813f050a61d0a3 (diff)
downloadpacman-1741b5cc30119631940f7b471395765fb6fa7b0f.tar.xz
dist: preserve symlinks on installation
This applies to the repo-remove man page as well as the script itself. Yes Dan, I ran distcheck afterwards. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 4fb57803..d0a3eb51 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -76,7 +76,7 @@ REAL_PACKAGE_VERSION = $(PACKAGE_VERSION)
endif
man_MANS =
-dist_man_MANS = $(ASCIIDOC_MANS) repo-remove.8
+dist_man_MANS = $(ASCIIDOC_MANS)
if USE_DOXYGEN
man_MANS += $(DOXYGEN_MANS)
@@ -151,4 +151,13 @@ repo-remove.8: repo-add.8
rm -f repo-remove.8
$(LN_S) repo-add.8 repo-remove.8
+install-data-hook:
+ cd $(DESTDIR)$(mandir)/man8 && \
+ ( $(LN_S) repo-add.8 repo-remove.8 || \
+ ln repo-add.8 repo-remove.8 || \
+ cp repo-add.8 repo-remove.8 )
+
+uninstall-hook:
+ $(RM) $(DESTDIR)$(mandir)/man8/repo-remove.8
+
# vim:set ts=2 sw=2 noet: