1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

uses: suppress grep warnings when updating file paths

USES=erlang:rebar does a global replace on files to correct LOCALBASE.
This should only be run on files, as dirs cause needless log spam.

Sponsored by:	SkunkWerks, GmbH
Differential Revision:	https://reviews.freebsd.org/D23293
This commit is contained in:
Dave Cottlehuber 2020-01-23 11:31:22 +00:00
parent b6d5a8c18b
commit 6966b5c622
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=523922

4
Mk/Uses/erlang.mk vendored
View File

@ -77,9 +77,9 @@ post-patch-erlang:
${REINPLACE_CMD} -i '' -e 's/{ *vsn,.*}/{vsn, "${PORTVERSION}"}/' \
${WRKSRC}/ebin/${ERL_APP_NAME}.app; \
fi
@${GREP} -l "%%LOCALBASE%%" $$(${FIND} ${WRKSRC}) \
@${GREP} -l "%%LOCALBASE%%" $$(${FIND} ${WRKSRC} -type f) \
| ${XARGS} ${REINPLACE_CMD} -i '' -e "s@%%LOCALBASE%%@${LOCALBASE}@"
@${GREP} -l "%%PORTVERSION%%" $$(${FIND} ${WRKSRC}) \
@${GREP} -l "%%PORTVERSION%%" $$(${FIND} ${WRKSRC} -type f) \
| ${XARGS} ${REINPLACE_CMD} -i '' -e "s@%%PORTVERSION%%@${PORTVERSION}@"
# Always try to build with the system version of rebar and rebar3
@if [ -f ${WRKSRC}/rebar.config ]; then \