Skip to content

Commit 955819e

Browse files
committed
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 1063e0c commit 955819e

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
@@ -817,12 +817,11 @@ MACOSOUTDIR=out/macos
817817

818818
.PHONY: release-only
819819
release-only:
820-
@if [ "$(DISTTYPE)" != "nightly" ] && [ "$(DISTTYPE)" != "next-nightly" ] && \
821-
`grep -q REPLACEME doc/api/*.md`; then \
820+
@if [ "$(DISTTYPE)" = "release" ] && `grep -q REPLACEME doc/api/*.md`; then \
822821
echo 'Please update REPLACEME in Added: tags in doc/api/*.md (See doc/releases.md)' ; \
823822
exit 1 ; \
824823
fi
825-
@if [ "$(DISTTYPE)" != "nightly" ] && [ "$(DISTTYPE)" != "next-nightly" ] && \
824+
@if [ "$(DISTTYPE)" = "release" ] && \
826825
`grep -q DEP...X doc/api/deprecations.md`; then \
827826
echo 'Please update DEP...X in doc/api/deprecations.md (See doc/releases.md)' ; \
828827
exit 1 ; \

0 commit comments

Comments
 (0)