build: improved release lint error message

PR-URL: https://github.com/nodejs/node/pull/35523
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Beth Griggs <bgriggs@redhat.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
pull/35563/head
Shelley Vohr 2020-10-06 09:47:36 -07:00
parent ce84bacdc6
commit 6141ca318a
No known key found for this signature in database
GPG Key ID: F13993A75599653C
1 changed files with 3 additions and 1 deletions

View File

@ -943,7 +943,9 @@ endif
.PHONY: release-only .PHONY: release-only
release-only: check-xz release-only: check-xz
@if [ "$(DISTTYPE)" = "release" ] && `grep -q REPLACEME doc/api/*.md`; then \ @if [ "$(DISTTYPE)" = "release" ] && `grep -q REPLACEME doc/api/*.md`; then \
echo 'Please update REPLACEME in Added: tags in doc/api/*.md (See doc/guides/releases.md)' ; \ echo 'Please update REPLACEME tags in the following doc/api/*.md files (See doc/guides/releases.md):\n' ; \
REPLACEMES="$(shell grep -l REPLACEME doc/api/*.md)" ; \
echo "$$REPLACEMES\n" | tr " " "\n" ; \
exit 1 ; \ exit 1 ; \
fi fi
@if [ "$(DISTTYPE)" = "release" ] && \ @if [ "$(DISTTYPE)" = "release" ] && \