Module Name:    src
Committed By:   christos
Date:           Sat Mar 13 22:05:49 UTC 2010

Modified Files:
        src/share/mk: bsd.klinks.mk

Log Message:
don't make links to directories that don't exist


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/share/mk/bsd.klinks.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.klinks.mk
diff -u src/share/mk/bsd.klinks.mk:1.6 src/share/mk/bsd.klinks.mk:1.7
--- src/share/mk/bsd.klinks.mk:1.6	Fri Nov 27 08:50:29 2009
+++ src/share/mk/bsd.klinks.mk	Sat Mar 13 17:05:49 2010
@@ -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 && \

Reply via email to