FreeBSD Bugzilla – Attachment 175935 Details for
Bug 213614
optimize copytree_*
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v1
optimize-copytree.diff (text/plain), 1.41 KB, created by
Mathieu Arnold
on 2016-10-19 14:38:52 UTC
(
hide
)
Description:
v1
Filename:
MIME Type:
Creator:
Mathieu Arnold
Created:
2016-10-19 14:38:52 UTC
Size:
1.41 KB
patch
obsolete
>diff --git Mk/bsd.port.mk Mk/bsd.port.mk >index c5f7bf7..1ba6c79 100644 >--- Mk/bsd.port.mk >+++ Mk/bsd.port.mk >@@ -2046,14 +2046,17 @@ MAKE_ENV+= ${INSTALL_MACROS} > SCRIPTS_ENV+= ${INSTALL_MACROS} > > # Macro for copying entire directory tree with correct permissions >+# In the -exec shell commands, we add add a . as the first argument, it would >+# end up being $0 aka the script name, which is not part of $@, so we force it >+# to be able to use $@ directly. > COPYTREE_BIN= ${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \ > 2>&1) && \ >- ${FIND} -d $$0 $$2 -type d -exec chmod 755 $$1/{} \; && \ >- ${FIND} -d $$0 $$2 -type f -exec chmod ${BINMODE} $$1/{} \;' -- >+ ${FIND} -d $$0 $$2 -type d -exec ${SH} -c '\''cd '\''$$1'\'' && chmod 755 "$$@"'\'' -- . {} + && \ >+ ${FIND} -d $$0 $$2 -type f -exec ${SH} -c '\''cd '\''$$1'\'' && chmod ${BINMODE} "$$@"'\'' -- . {} +' -- > COPYTREE_SHARE= ${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \ > 2>&1) && \ >- ${FIND} -d $$0 $$2 -type d -exec chmod 755 $$1/{} \; && \ >- ${FIND} -d $$0 $$2 -type f -exec chmod ${SHAREMODE} $$1/{} \;' -- >+ ${FIND} -d $$0 $$2 -type d -exec ${SH} -c '\''cd '\''$$1'\'' && chmod 755 "$$@"'\'' -- . {} + && \ >+ ${FIND} -d $$0 $$2 -type f -exec ${SH} -c '\''cd '\''$$1'\'' && chmod ${SHAREMODE} "$$@"'\'' -- . {} +' -- > > # The user can override the NO_PACKAGE by specifying this from > # the make command line
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 213614
:
175935
|
175982
|
176023