View | Details | Raw Unified | Return to bug 181271
Collapse All | Expand All

(-)bsd.port.mk (-8 / +9 lines)
Lines 1134-1148 Link Here
1134
.if !target(makepatch)
1134
.if !target(makepatch)
1135
makepatch:
1135
makepatch:
1136
	@${MKDIR} ${FILESDIR}
1136
	@${MKDIR} ${FILESDIR}
1137
	@(cd ${PATCH_WRKSRC}; \
1137
	@(cd ${PATCH_WRKSRC} && \
1138
		IFS="`printf '\n\t'`" && \
1138
		for i in `find . -type f -name '*.orig'`; do \
1139
		for i in `find . -type f -name '*.orig'`; do \
1139
			ORG=$$i; \
1140
			ORG="$$i"; \
1140
			NEW=$${i%.orig}; \
1141
			NEW="$${i%.orig}"; \
1141
			OUT=${FILESDIR}`${ECHO} $${NEW} | \
1142
			OUT="${FILESDIR}`${ECHO} $${NEW} | \
1142
				${SED} -e 's|/|__|g' \
1143
				${SED} -e 's|[/ ]|__|g' \
1143
					-e 's|^\.__|/patch-|'`; \
1144
					-e 's|^\.__|/patch-|'`"; \
1144
			${ECHO} ${DIFF} -ud $${ORG} $${NEW} '>' $${OUT}; \
1145
			${ECHO} ${DIFF} -ud "$${ORG}" "$${NEW}" '>' "$${OUT}"; \
1145
			${DIFF} -ud $${ORG} $${NEW} > $${OUT} || ${TRUE}; \
1146
			${DIFF} -ud "$${ORG}" "$${NEW}" > "$${OUT}" || ${TRUE}; \
1146
		done \
1147
		done \
1147
	)
1148
	)
1148
.endif
1149
.endif

Return to bug 181271