summaryrefslogtreecommitdiff
path: root/misc/lv/patches/patch-aa
blob: b86e2a96699cb2640a15b1bc9f4b49adb0e8fd17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-aa,v 1.4 2005/04/05 14:56:06 cube Exp $

--- ../src/Makefile.in.orig	2004-01-06 08:22:17.000000000 +0100
+++ ../src/Makefile.in
@@ -64,18 +64,10 @@ depend::
 #
 
 install::
-	$(INSTALL) -s -m 555 lv $(bindir)
-	if test -f $(bindir)/lgrep; then \
-		/bin/rm -f $(bindir)/lgrep; \
-	fi
-	(cd $(bindir); ln lv lgrep)
-	if test ! -d $(lvlibdir); then \
-		mkdir -p $(lvlibdir); \
-	fi
-	$(INSTALL) -m 444 $(srcdir)/../lv.hlp $(lvlibdir)
-	if test -d $(mandir) -a -d $(mandir)/man1; then \
-		$(INSTALL) -m 444 $(srcdir)/../lv.1 $(mandir)/man1; \
-	fi
+	$(BSD_INSTALL_PROGRAM) lv $(bindir)/lv
+	$(LN) -s lv $(bindir)/lgrep
+	$(BSD_INSTALL_DATA) $(srcdir)/../lv.hlp $(lvlibdir)/lv.hlp
+	$(BSD_INSTALL_MAN) $(srcdir)/../lv.1 $(mandir)/man1; \
 
 uninstall::
 	for i in $(bindir)/lv $(bindir)/lgrep $(lvlibdir)/lv.hlp $(mandir)/man1/lv.1; do \