summaryrefslogtreecommitdiffstats
path: root/etc/mail
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2015-01-16 21:39:08 +0000
committerwill <will@FreeBSD.org>2015-01-16 21:39:08 +0000
commitafad9375d853b7b34e4256d1c3421d937b565c57 (patch)
tree8a1af53c5feb7376262fc346729ffddd1a4b3c93 /etc/mail
parent96da0c1c63a35ba3aca3a9ef55e32fde9bdf7964 (diff)
downloadFreeBSD-src-afad9375d853b7b34e4256d1c3421d937b565c57.zip
FreeBSD-src-afad9375d853b7b34e4256d1c3421d937b565c57.tar.gz
Add a ${CP} alias for copying files in the build.
Some users build FreeBSD as non-root in Perforce workspaces. By default, Perforce sets files read-only unless they're explicitly being edited. As a result, the -f argument must be used to cp in order to override the read-only flag when copying source files to object directories. Bare use of 'cp' should be avoided in the future. Update all current users of 'cp' in the src tree. Reviewed by: emaste MFC after: 1 week Sponsored by: Spectra Logic
Diffstat (limited to 'etc/mail')
-rw-r--r--etc/mail/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/mail/Makefile b/etc/mail/Makefile
index 510b024..f8e5b77 100644
--- a/etc/mail/Makefile
+++ b/etc/mail/Makefile
@@ -69,7 +69,7 @@ SENDMAIL_MC!= hostname
SENDMAIL_MC:= ${SENDMAIL_MC}.mc
${SENDMAIL_MC}:
- cp -f freebsd.mc ${SENDMAIL_MC}
+ ${CP} freebsd.mc ${SENDMAIL_MC}
.endif
.ifndef SENDMAIL_SUBMIT_MC
@@ -77,7 +77,7 @@ SENDMAIL_SUBMIT_MC!= hostname
SENDMAIL_SUBMIT_MC:= ${SENDMAIL_SUBMIT_MC}.submit.mc
${SENDMAIL_SUBMIT_MC}:
- cp -f freebsd.submit.mc ${SENDMAIL_SUBMIT_MC}
+ ${CP} freebsd.submit.mc ${SENDMAIL_SUBMIT_MC}
.endif
INSTALL_CF= ${SENDMAIL_MC:R}.cf
OpenPOWER on IntegriCloud