From f0fc6a1b7cb3716435796b28af9596783e535e46 Mon Sep 17 00:00:00 2001 From: seb Date: Tue, 15 Jan 2002 09:02:09 +0000 Subject: Test before creating ${_DISTDIR} to avoid Solaris' /bin/mkdir apparent brokenness. --- mk/bsd.pkg.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mk') diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 126cb388fd0..3d85fdf261a 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.902 2002/01/15 00:32:12 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.903 2002/01/15 09:02:09 seb Exp $ # # This file is in the public domain. # @@ -1273,7 +1273,7 @@ SITES_${fetchfile:T}?= ${PATCH_SITES} . endfor . endif . if !empty(_ALLFILES) -_FETCH_ALLFILES= ${MKDIR} ${_DISTDIR}; +_FETCH_ALLFILES= ${TEST} -d ${_DISTDIR} || ${MKDIR} ${_DISTDIR}; _FETCH_ALLFILES+= cd ${_DISTDIR}; . for fetchfile in ${_ALLFILES} _FETCH_ALLFILES+= \ -- cgit v1.2.3