View | Details | Raw Unified | Return to bug 213614 | Differences between
and this patch

Collapse All | Expand All

(-)Mk/bsd.port.mk (-4 / +7 lines)
Lines 2046-2059 MAKE_ENV+= ${INSTALL_MACROS} Link Here
2046
SCRIPTS_ENV+=	${INSTALL_MACROS}
2046
SCRIPTS_ENV+=	${INSTALL_MACROS}
2047
2047
2048
# Macro for copying entire directory tree with correct permissions
2048
# Macro for copying entire directory tree with correct permissions
2049
# In the -exec shell commands, we add add a . as the first argument, it would
2050
# end up being $0 aka the script name, which is not part of $@, so we force it
2051
# to be able to use $@ directly.
2049
COPYTREE_BIN=	${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
2052
COPYTREE_BIN=	${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
2050
					2>&1) && \
2053
					2>&1) && \
2051
					${FIND} -d $$0 $$2 -type d -exec chmod 755 $$1/{} \; && \
2054
					${FIND} -d $$0 $$2 -type d -exec ${SH} -c '\''cd '\''$$1'\'' && chmod 755 "$$@"'\'' -- . {} + && \
2052
					${FIND} -d $$0 $$2 -type f -exec chmod ${BINMODE} $$1/{} \;' --
2055
					${FIND} -d $$0 $$2 -type f -exec ${SH} -c '\''cd '\''$$1'\'' && chmod ${BINMODE} "$$@"'\'' -- . {} +' --
2053
COPYTREE_SHARE=	${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
2056
COPYTREE_SHARE=	${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
2054
					2>&1) && \
2057
					2>&1) && \
2055
					${FIND} -d $$0 $$2 -type d -exec chmod 755 $$1/{} \; && \
2058
					${FIND} -d $$0 $$2 -type d -exec ${SH} -c '\''cd '\''$$1'\'' && chmod 755 "$$@"'\'' -- . {} + && \
2056
					${FIND} -d $$0 $$2 -type f -exec chmod ${SHAREMODE} $$1/{} \;' --
2059
					${FIND} -d $$0 $$2 -type f -exec ${SH} -c '\''cd '\''$$1'\'' && chmod ${SHAREMODE} "$$@"'\'' -- . {} +' --
2057
2060
2058
# The user can override the NO_PACKAGE by specifying this from
2061
# The user can override the NO_PACKAGE by specifying this from
2059
# the make command line
2062
# the make command line

Return to bug 213614