summaryrefslogtreecommitdiff
path: root/shells/bash2/Makefile
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-06-27 23:03:34 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-06-27 23:03:34 +0000
commitafec97d4f4ff8eca98fd42a94c5ca3da008d362f (patch)
tree89d2edaea8e73d056382a05c70dd9cb2191b30ec /shells/bash2/Makefile
parentAdd leafnode (diff)
Install /etc/shells entry and info dir entry
PR: 3971
Notes
Notes: svn path=/head/; revision=7105
Diffstat (limited to 'shells/bash2/Makefile')
-rw-r--r--shells/bash2/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/shells/bash2/Makefile b/shells/bash2/Makefile
index 38e234998f2f..fab0686fb505 100644
--- a/shells/bash2/Makefile
+++ b/shells/bash2/Makefile
@@ -3,7 +3,7 @@
# Date created: 21 August 1994
# Whom: jkh
#
-# $Id: Makefile,v 1.24 1997/05/26 22:21:51 ache Exp $
+# $Id: Makefile,v 1.25 1997/06/06 23:13:49 ache Exp $
#
DISTNAME= bash-2.01
@@ -22,7 +22,15 @@ MAN1= bash.1 bashbug.1
post-patch:
cp /usr/include/fnmatch.h ${WRKSRC}/lib/glob/fnmatch.h
+pre-install:
+ if [ ! -s ${PREFIX}/info/dir ]; then \
+ ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
+ fi
+
post-install:
+ ${CP} /etc/shells /etc/shells.bak
+ (${GREP} -v ${PREFIX}/bin/bash /etc/shells.bak; echo ${PREFIX}/bin/bash) >/etc/shells
+ ${RM} /etc/shells.bak
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/bash
${INSTALL_MAN} \