summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-09-13 13:47:11 +0200
committerDan McGee <dan@archlinux.org>2011-09-15 00:18:07 +0200
commit68856755c4f18affb513d93ec94fa9307c31473a (patch)
treed4f6fb6f8d5c8e33b8c229d67625b0967d02cd57 /doc
parenta2356d5ae3cdc6ac28ed614e0e5e7e75174728e9 (diff)
downloadpacman-68856755c4f18affb513d93ec94fa9307c31473a.tar.gz
pacman-68856755c4f18affb513d93ec94fa9307c31473a.tar.xz
buildsys: remove existing symlinks before installing
This fixes build errors when performing a manual install straight to a filesystem where the files already exist. Reported-by: Sergej Pupykin <ml@sergej.pp.ru> 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.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index a9aa78f8..aa27b506 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -153,6 +153,7 @@ repo-remove.8: repo-add.8
install-data-hook:
cd $(DESTDIR)$(mandir)/man8 && \
+ $(RM) repo-remove.8 && \
( $(LN_S) repo-add.8 repo-remove.8 || \
ln repo-add.8 repo-remove.8 || \
cp repo-add.8 repo-remove.8 )