summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorthorpej <thorpej@pkgsrc.org>1997-10-17 01:40:49 +0000
committerthorpej <thorpej@pkgsrc.org>1997-10-17 01:40:49 +0000
commit8af161a067034d0c7d286f51923c2e3b06084b53 (patch)
treec5cf2742e890466d9f61bef09a75d6d1374d26bc /mk
parent165fb7ce1f683571fc78e6cb8ef5adcd8fa7c5ca (diff)
downloadpkgsrc-8af161a067034d0c7d286f51923c2e3b06084b53.tar.gz
Make sure the ${PREFIX} directory exists before invoking mtree.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk5
-rw-r--r--mk/bsd.port.mk5
2 files changed, 8 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index e060167f33c..7132ca6ccca 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -2,7 +2,7 @@
# ex:ts=4
#
# Id: bsd.port.mk,v 1.263 1997/07/17 17:47:36 markm Exp
-# $NetBSD: bsd.pkg.mk,v 1.11 1997/10/09 10:38:13 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.12 1997/10/17 01:40:49 thorpej Exp $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
@@ -1199,6 +1199,9 @@ _PORT_USE: .USE
${ECHO_MSG} "Copy it from a suitable location (e.g., /usr/src/etc/mtree) and try again."; \
exit 1; \
else \
+ if [ ! -d ${PREFIX} ]; then \
+ mkdir -p ${PREFIX}; \
+ fi; \
${MTREE_CMD} ${MTREE_ARGS} ${PREFIX}/; \
fi; \
else \
diff --git a/mk/bsd.port.mk b/mk/bsd.port.mk
index 33defb4a15e..a11f7e9d5b1 100644
--- a/mk/bsd.port.mk
+++ b/mk/bsd.port.mk
@@ -2,7 +2,7 @@
# ex:ts=4
#
# Id: bsd.port.mk,v 1.263 1997/07/17 17:47:36 markm Exp
-# $NetBSD: bsd.port.mk,v 1.11 1997/10/09 10:38:13 agc Exp $
+# $NetBSD: bsd.port.mk,v 1.12 1997/10/17 01:40:49 thorpej Exp $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
@@ -1199,6 +1199,9 @@ _PORT_USE: .USE
${ECHO_MSG} "Copy it from a suitable location (e.g., /usr/src/etc/mtree) and try again."; \
exit 1; \
else \
+ if [ ! -d ${PREFIX} ]; then \
+ mkdir -p ${PREFIX}; \
+ fi; \
${MTREE_CMD} ${MTREE_ARGS} ${PREFIX}/; \
fi; \
else \