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 /tools/test | |
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 'tools/test')
-rw-r--r-- | tools/test/dtrace/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test/dtrace/Makefile b/tools/test/dtrace/Makefile index 405d536b36fa..ca0547aabdbf 100644 --- a/tools/test/dtrace/Makefile +++ b/tools/test/dtrace/Makefile @@ -343,7 +343,7 @@ ${_f:T:S/c$/exe/} : ${_f} .for _f in ${ALL_TESTEXEFILES} ${_f:T} : ${_f} - cp -f ${_f} ${.TARGET} + ${CP} ${_f} ${.TARGET} chmod a+x ${.TARGET} .endfor |