From 2f7685a402ad64408b8b1dc43c8e228a41c2826f Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 13 May 2016 23:24:33 +0200 Subject: [PATCH] build: add REPLACEME tag for version info in docs Add a `REPLACEME` tag that should be used when introducing docs for new features, so that they can be updated when releases are made. Ref: https://github.com/nodejs/node/issues/6578 PR-URL: https://github.com/nodejs/node/pull/6864 Reviewed-By: Anna Henningsen Reviewed-By: Claudio Rodriguez Reviewed-By: Colin Ihrig --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index c10858f4efc6d5..82a38aca0795b4 100644 --- a/Makefile +++ b/Makefile @@ -425,6 +425,10 @@ PACKAGEMAKER ?= /Developer/Applications/Utilities/PackageMaker.app/Contents/MacO PKGDIR=out/dist-osx release-only: + @if `grep -q REPLACEME doc/api/*.md`; then \ + echo 'Please update Added: tags in the documentation first.' ; \ + exit 1 ; \ + fi @if [ "$(shell git status --porcelain | egrep -v '^\?\? ')" = "" ]; then \ exit 0 ; \ else \