diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-09-13 13:47:11 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-15 00:18:07 +0200 |
commit | 68856755c4f18affb513d93ec94fa9307c31473a (patch) | |
tree | d4f6fb6f8d5c8e33b8c229d67625b0967d02cd57 /scripts/Makefile.am | |
parent | a2356d5ae3cdc6ac28ed614e0e5e7e75174728e9 (diff) | |
download | pacman-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 'scripts/Makefile.am')
-rw-r--r-- | scripts/Makefile.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 52a784ab..d89fd306 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -106,10 +106,12 @@ repo-elephant: $(srcdir)/repo-add.sh.in install-data-hook: cd $(DESTDIR)$(bindir) && \ + $(RM) repo-elephant && \ ( $(LN_S) repo-add repo-elephant || \ ln repo-add repo-elephant || \ cp repo-add repo-elephant ) cd $(DESTDIR)$(bindir) && \ + $(RM) repo-remove && \ ( $(LN_S) repo-add repo-remove || \ ln repo-add repo-remove || \ cp repo-add repo-remove ) |