FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 08-13-2011, 08:07 PM
Dave Reisner
 
Default 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>
---
doc/Makefile.am | 9 ++++++++-
scripts/Makefile.am | 13 ++++++++++---
2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/doc/Makefile.am b/doc/Makefile.am
index 4fb5780..6df169c 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,11 @@ 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
+
+uninstall-hook:
+ $(RM) $(DESTDIR)$(mandir)/man8/repo-remove.8
+
# vim:set ts=2 sw=2 noet:
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index adb259a..1b9f969 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,13 @@ 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_S) repo-add repo-remove
+
+uninstall-hook:
+ cd $(DESTDIR)$(bindir) &&
+ $(RM) repo-remove repo-elephant
+
# vim:set ts=2 sw=2 noet:
--
1.7.6
 

Thread Tools




All times are GMT. The time now is 05:14 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org