Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc Add rm's before symlink and hard link commands.



details:   https://anonhg.NetBSD.org/src/rev/1be5c8b4af20
branches:  trunk
changeset: 516776:1be5c8b4af20
user:      perry <perry%NetBSD.org@localhost>
date:      Mon Oct 29 22:18:28 2001 +0000

description:
Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.

diffstat:

 etc/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 6acb5a810922 -r 1be5c8b4af20 etc/Makefile
--- a/etc/Makefile      Mon Oct 29 21:30:54 2001 +0000
+++ b/etc/Makefile      Mon Oct 29 22:18:28 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.188 2001/10/29 01:19:19 perry Exp $
+#      $NetBSD: Makefile,v 1.189 2001/10/29 22:18:28 perry Exp $
 #      from: @(#)Makefile      8.7 (Berkeley) 5/25/95
 
 # Environment variables without default values:
@@ -186,6 +186,7 @@
                    ${DESTDIR}/root/.profile; \
                ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 644 dot.shrc \
                    ${DESTDIR}/root/.shrc; \
+               rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
                ${INSTALL} ${INSTPRIV} -l h \
                        ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
                ${INSTALL} ${INSTPRIV} -l h \
@@ -276,6 +277,7 @@
 distrib-dirs:
        ${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${DESTDIR}
        ${MTREE} -def mtree/NetBSD.dist -p ${DESTDIR}/ -U ${UNPRIVILEGED:D-W}
+       rm -f ${DESTDIR}/sys
        ${INSTALL} ${INSTPRIV} -l s -o root -g wheel -m 755 \
                usr/src/sys ${DESTDIR}/sys
 



Home | Main Index | Thread Index | Old Index