summaryrefslogtreecommitdiffstats
path: root/usr.bin/grep
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 /usr.bin/grep
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 'usr.bin/grep')
-rw-r--r--usr.bin/grep/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/grep/Makefile b/usr.bin/grep/Makefile
index 7dfde14..fd27687 100644
--- a/usr.bin/grep/Makefile
+++ b/usr.bin/grep/Makefile
@@ -11,7 +11,7 @@ PROG= bsdgrep
CLEANFILES+= bsdgrep.1
bsdgrep.1: grep.1
- cp -f ${.ALLSRC} ${.TARGET}
+ ${CP} ${.ALLSRC} ${.TARGET}
.endif
SRCS= file.c grep.c queue.c util.c
OpenPOWER on IntegriCloud