From 1741b5cc30119631940f7b471395765fb6fa7b0f Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Fri, 12 Aug 2011 18:45:20 -0400 Subject: 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 Signed-off-by: Dan McGee --- scripts/Makefile.am | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'scripts/Makefile.am') diff --git a/scripts/Makefile.am b/scripts/Makefile.am index adb259a7..b5767ac6 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -4,9 +4,7 @@ AUTOMAKE_OPTIONS = std-options SUBDIRS = po bin_SCRIPTS = \ - $(OURSCRIPTS) \ - repo-remove \ - repo-elephant + $(OURSCRIPTS) OURSCRIPTS = \ makepkg \ @@ -105,4 +103,18 @@ repo-elephant: $(srcdir)/repo-add.sh.in rm -f repo-elephant $(LN_S) repo-add repo-elephant +install-data-hook: + cd $(DESTDIR)$(bindir) && \ + ( $(LN_S) repo-add repo-elephant || \ + ln repo-add repo-elephant || \ + cp repo-add repo-elephant ) + cd $(DESTDIR)$(bindir) && \ + ( $(LN_S) repo-add repo-remove || \ + ln repo-add repo-remove || \ + cp repo-add repo-remove ) + +uninstall-hook: + cd $(DESTDIR)$(bindir) && \ + $(RM) repo-remove repo-elephant + # vim:set ts=2 sw=2 noet: -- cgit v1.2.3-54-g00ecf