diff options
author | andrew <andrew@FreeBSD.org> | 2015-04-06 08:37:40 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2015-04-06 08:37:40 +0000 |
commit | eadef9904618942bce40e2d7adc4554e408ee6db (patch) | |
tree | ffa346e40db071df5e30043671f99e943006b2cd | |
parent | 7ac590f4504de21c010aad4fca90d4d89be4829f (diff) | |
download | FreeBSD-src-eadef9904618942bce40e2d7adc4554e408ee6db.zip FreeBSD-src-eadef9904618942bce40e2d7adc4554e408ee6db.tar.gz |
Respect DESTDIR when creating the directory structure when NO_ROOT is set.
Reviewed by: bapt
MFC after: 1 Week
-rw-r--r-- | etc/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/Makefile b/etc/Makefile index b714af5..e5ade7f 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -379,7 +379,7 @@ distrib-dirs: ${MTREES:N/*} test "$$d" == "/" && d=""; \ d=${DISTBASE}$$d; \ shift; \ - test -d $$d || mkdir -p $$d; \ + test -d ${DESTDIR}/$$d || mkdir -p ${DESTDIR}/$$d; \ ${ECHO} "${MTREE_CMD:N-W} -C -f $$m -K uname,gname | " \ "sed s#^\.#.$$d# | ${METALOG.add}" ; \ ${MTREE_CMD:N-W} -C -f $$m -K uname,gname | sed s#^\.#.$$d# | \ |