Source-Changes-HG archive

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

[src/trunk]: src/share/mk don't make links to directories that don't exist



details:   https://anonhg.NetBSD.org/src/rev/c8b0ef95c018
branches:  trunk
changeset: 752988:c8b0ef95c018
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Mar 13 22:05:49 2010 +0000

description:
don't make links to directories that don't exist

diffstat:

 share/mk/bsd.klinks.mk |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 44a3dfafc8f7 -r c8b0ef95c018 share/mk/bsd.klinks.mk
--- a/share/mk/bsd.klinks.mk    Sat Mar 13 20:39:54 2010 +0000
+++ b/share/mk/bsd.klinks.mk    Sat Mar 13 22:05:49 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.klinks.mk,v 1.6 2009/11/27 13:50:29 pooka Exp $
+#      $NetBSD: bsd.klinks.mk,v 1.7 2010/03/13 22:05:49 christos Exp $
 #
 
 .include <bsd.own.mk>
@@ -39,8 +39,10 @@
 .BEGIN:
        @rm -f machine && \
            ln -s $S/arch/${MACHINE}/include machine
-       @rm -f ${MACHINE_CPU} && \
-           ln -s $S/arch/${MACHINE_CPU}/include ${MACHINE_CPU}
+       @if [ -d $S/arch/${MACHINE_CPU} ]; then \
+           rm -f ${MACHINE_CPU} && \
+           ln -s $S/arch/${MACHINE_CPU}/include ${MACHINE_CPU}; \
+        fi
 # XXX. it gets worse..
 .if ${MACHINE} == "sun2" || ${MACHINE} == "sun3"
        @rm -f sun68k && \



Home | Main Index | Thread Index | Old Index