mirror of https://github.com/nodejs/node.git
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
parent
ce84bacdc6
commit
6141ca318a
4
Makefile
4
Makefile
|
@ -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" ] && \
|
||||||
|
|
Loading…
Reference in New Issue