diff options
author | Will Andrews <will@FreeBSD.org> | 2015-01-16 21:39:08 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2015-01-16 21:39:08 +0000 |
commit | 7a37b5fc17b2d3c2f0487756ab32450019fdbd31 (patch) | |
tree | 8a1af53c5feb7376262fc346729ffddd1a4b3c93 /etc | |
parent | 5962fd53ac446c47d6d2feeb3f1d64a8fc5dd640 (diff) | |
download | src-7a37b5fc17b2d3c2f0487756ab32450019fdbd31.tar.gz src-7a37b5fc17b2d3c2f0487756ab32450019fdbd31.zip |
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
Notes
Notes:
svn path=/head/; revision=277273
Diffstat (limited to 'etc')
-rw-r--r-- | etc/mail/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/mail/Makefile b/etc/mail/Makefile index 510b0243f984..f8e5b7759c62 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 |