summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorthorpej <thorpej>1997-10-17 01:40:49 +0000
committerthorpej <thorpej>1997-10-17 01:40:49 +0000
commit53cc09ad50a43ab972888268423804c907d7d2fc (patch)
treec5cf2742e890466d9f61bef09a75d6d1374d26bc /mk
parentd30fb1fef2ee1c6f245fddae3a720966450e87ba (diff)
downloadpkgsrc-53cc09ad50a43ab972888268423804c907d7d2fc.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 \