mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
build: Simplify fetching release version
PR-URL: https://github.com/iojs/io.js/pull/1405 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rod Vagg <rod@vagg.org>
This commit is contained in:
1 parent
a07c69113a
commit
f9a2d31b32
2 files changed
+1
-12
No files matched your search
@@ -197,7 +197,7 @@ docclean:
|
||||
RAWVER=$(shell $(PYTHON) tools/getnodeversion.py)
|
||||
VERSION=v$(RAWVER)
|
||||
FULLVERSION=$(VERSION)
|
||||
RELEASE=$(shell $(PYTHON) tools/getnodeisrelease.py)
|
||||
RELEASE=($shell sed -ne 's/#define NODE_VERSION_IS_RELEASE \([01]\)/\1/p' src/node_version.h)
|
||||
PLATFORM=$(shell uname | tr '[:upper:]' '[:lower:]')
|
||||
NPMVERSION=v$(shell cat deps/npm/package.json | grep '"version"' | sed 's/^[^:]*: "\([^"]*\)",.*/\1/')
|
||||
ifeq ($(findstring x86_64,$(shell uname -m)),x86_64)
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
import sys,os,re
|
||||
|
||||
node_version_h = os.path.join(os.path.dirname(__file__), '..', 'src',
|
||||
'node_version.h')
|
||||
|
||||
f = open(node_version_h)
|
||||
|
||||
for line in f:
|
||||
if re.match('#define NODE_VERSION_IS_RELEASE', line):
|
||||
release = int(line.split()[2])
|
||||
print release
|
||||
Reference in new issue
Block a user