Skip to content

Commit f9a2d31

Browse files
committed
build: Simplify fetching release version
PR-URL: #1405 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rod Vagg <[email protected]>
1 parent a07c691 commit f9a2d31

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ docclean:
197197
RAWVER=$(shell $(PYTHON) tools/getnodeversion.py)
198198
VERSION=v$(RAWVER)
199199
FULLVERSION=$(VERSION)
200-
RELEASE=$(shell $(PYTHON) tools/getnodeisrelease.py)
200+
RELEASE=($shell sed -ne 's/#define NODE_VERSION_IS_RELEASE \([01]\)/\1/p' src/node_version.h)
201201
PLATFORM=$(shell uname | tr '[:upper:]' '[:lower:]')
202202
NPMVERSION=v$(shell cat deps/npm/package.json | grep '"version"' | sed 's/^[^:]*: "\([^"]*\)",.*/\1/')
203203
ifeq ($(findstring x86_64,$(shell uname -m)),x86_64)

tools/getnodeisrelease.py

-11
This file was deleted.

0 commit comments

Comments
 (0)