From 6759a2e4d58bbc756f08b63a0a1d7fc22d943b0e Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Thu, 11 May 2017 12:33:29 +1000 Subject: [PATCH] build: only check REPLACEME & DEP...X for releases Ref: https://github.com/nodejs/node/pull/24551 Ref: https://github.com/nodejs/node/pull/12958 Ref: https://github.com/nodejs/node/pull/12957 Ref: https://github.com/nodejs/node/pull/8325 --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3dc34995cce213..1975dfa7890e68 100644 --- a/Makefile +++ b/Makefile @@ -817,12 +817,11 @@ MACOSOUTDIR=out/macos .PHONY: release-only release-only: - @if [ "$(DISTTYPE)" != "nightly" ] && [ "$(DISTTYPE)" != "next-nightly" ] && \ - `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/releases.md)' ; \ exit 1 ; \ fi - @if [ "$(DISTTYPE)" != "nightly" ] && [ "$(DISTTYPE)" != "next-nightly" ] && \ + @if [ "$(DISTTYPE)" = "release" ] && \ `grep -q DEP...X doc/api/deprecations.md`; then \ echo 'Please update DEP...X in doc/api/deprecations.md (See doc/releases.md)' ; \ exit 1 ; \