diff options
author | tron <tron> | 2001-09-23 21:01:29 +0000 |
---|---|---|
committer | tron <tron> | 2001-09-23 21:01:29 +0000 |
commit | d62af28b74783148b21a8c18b182fbde0dbe3a90 (patch) | |
tree | b29b85408effe8dd04117842014bb17fb45b00b8 /shells/bash2 | |
parent | fb9ecd7105413c9138b15f205c46b30df1916e22 (diff) | |
download | pkgsrc-d62af28b74783148b21a8c18b182fbde0dbe3a90.tar.gz |
Make modifications of "/etc/shells" robust so that they don't fail if
"/etc/shells" doesn't exist or is empty after removing entries for
cerntain shell. These problems show up e.g. under SunOS.
Diffstat (limited to 'shells/bash2')
-rw-r--r-- | shells/bash2/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shells/bash2/Makefile b/shells/bash2/Makefile index 568b1062835..350150c61ff 100644 --- a/shells/bash2/Makefile +++ b/shells/bash2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.29 2001/08/30 13:56:27 mrg Exp $ +# $NetBSD: Makefile,v 1.30 2001/09/23 21:01:29 tron Exp $ # V= 2.05 @@ -39,8 +39,9 @@ post-patch: done post-install: + ${TOUCH} /etc/shells ${CP} /etc/shells /etc/shells.bak - (${GREP} -v ${PREFIX}/bin/bash /etc/shells.bak; ${ECHO} ${PREFIX}/bin/bash) >/etc/shells + (${GREP} -v ${PREFIX}/bin/bash /etc/shells.bak || ${TRUE}; ${ECHO} ${PREFIX}/bin/bash) >/etc/shells ${RM} /etc/shells.bak ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bash ${INSTALL_MAN} \ |