Skip to content

Commit aa88483

Browse files
rvaggMylesBorins
authored andcommitted
build: only check REPLACEME & DEP...X for releases
PR-URL: #24575 Refs: #24551 Refs: #12958 Refs: #12957 Refs: #8325 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Richard Lau <[email protected]>
1 parent 983e3a1 commit aa88483

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -810,12 +810,11 @@ MACOSOUTDIR=out/macos
810810

811811
.PHONY: release-only
812812
release-only:
813-
@if [ "$(DISTTYPE)" != "nightly" ] && [ "$(DISTTYPE)" != "next-nightly" ] && \
814-
`grep -q REPLACEME doc/api/*.md`; then \
813+
@if [ "$(DISTTYPE)" = "release" ] && `grep -q REPLACEME doc/api/*.md`; then \
815814
echo 'Please update REPLACEME in Added: tags in doc/api/*.md (See doc/releases.md)' ; \
816815
exit 1 ; \
817816
fi
818-
@if [ "$(DISTTYPE)" != "nightly" ] && [ "$(DISTTYPE)" != "next-nightly" ] && \
817+
@if [ "$(DISTTYPE)" = "release" ] && \
819818
`grep -q DEP...X doc/api/deprecations.md`; then \
820819
echo 'Please update DEP...X in doc/api/deprecations.md (See doc/releases.md)' ; \
821820
exit 1 ; \

0 commit comments

Comments
 (0)