From 3c40fbd25dd2658e03e30d9ab6c458164edfa6f7 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Tue, 26 Feb 2002 19:08:05 +0000 Subject: [PATCH] if ${DESTDIR} exists, do not modify the mode --- src/etc/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/etc/Makefile b/src/etc/Makefile index 65ba19f3..7d0201f1 100644 --- a/src/etc/Makefile +++ b/src/etc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.150 2002/02/16 01:20:42 deraadt Exp $ +# $OpenBSD: Makefile,v 1.151 2002/02/26 19:08:05 deraadt Exp $ TZDIR= /usr/share/zoneinfo LOCALTIME= US/Pacific @@ -242,7 +242,9 @@ distribution: distribution-etc-root-var (cd ..; ${MAKE} install) distrib-dirs: - ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR} + if [ ! -d ${DESTDIR}/. ]; then \ + ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}; \ + fi -mtree -qdef mtree/4.4BSD.dist -p ${DESTDIR}/ -u if [ ! -d ${DESTDIR}/usr/src ]; then \ ${INSTALL} -d -o root -g wsrc -m 775 ${DESTDIR}/usr/src; \