From c71b97303c078ac51b88b004d9fc2b2cad5e485e Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Sat, 28 Apr 2018 19:24:40 +0200 Subject: [PATCH] build: check for different deprecation signatures Right now we strictly test for `DEP00XX`. We are already above that number of deprecations and it is better to have a wildcard for the first three numbers. Only the last character has to match the X to print a warning. PR-URL: https://github.com/nodejs/node/pull/20384 Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell Reviewed-By: Anna Henningsen --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b3e65cec603..02d97b633d8 100644 --- a/Makefile +++ b/Makefile @@ -813,8 +813,8 @@ release-only: exit 1 ; \ fi @if [ "$(DISTTYPE)" != "nightly" ] && [ "$(DISTTYPE)" != "next-nightly" ] && \ - `grep -q DEP00XX doc/api/deprecations.md`; then \ - echo 'Please update DEP00XX in doc/api/deprecations.md (See doc/releases.md)' ; \ + `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 ; \ fi @if [ "$(shell git status --porcelain | egrep -v '^\?\? ')" = "" ]; then \