pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/tools In the tools framework, check that the direct...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a0aad1cb8bfc
branches:  trunk
changeset: 493862:a0aad1cb8bfc
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun May 15 22:53:57 2005 +0000

description:
In the tools framework, check that the directory doesn't exist before
creating it in case ${MKDIR} can't handle that situation.

diffstat:

 mk/tools/bsd.tools.mk |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 08541a248819 -r a0aad1cb8bfc mk/tools/bsd.tools.mk
--- a/mk/tools/bsd.tools.mk     Sun May 15 22:50:53 2005 +0000
+++ b/mk/tools/bsd.tools.mk     Sun May 15 22:53:57 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.tools.mk,v 1.22 2005/05/15 03:09:52 jlam Exp $
+# $NetBSD: bsd.tools.mk,v 1.23 2005/05/15 22:53:57 jlam Exp $
 #
 # This Makefile fragment creates tools under ${TOOLS_DIR} that are
 # found before similarly-named tools in the system path.
@@ -139,7 +139,8 @@
 override-tools: ${TOOLS_CMD.${_t_}}
 
 ${TOOLS_CMD.${_t_}}:
-       ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H:Q}
+       ${_PKG_SILENT}${_PKG_DEBUG}${TEST} -d ${.TARGET:H:Q} ||         \
+               ${MKDIR} ${.TARGET:H:Q}
        ${_PKG_SILENT}${_PKG_DEBUG}                                     \
        if ${TEST} -n ${TOOLS_REAL_CMDLINE.${_t_}:Q}""; then            \
                create=wrapper;                                         \



Home | Main Index | Thread Index | Old Index