Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNathan Rajlich <nathan@tootallnate.net>2012-08-10 03:30:41 +0400
committerNathan Rajlich <nathan@tootallnate.net>2012-08-10 04:11:41 +0400
commit64ac54a64d68c1fffd352d0453d81b6c3c0455b0 (patch)
tree33219e4c290e81474ba2a5a4ba0b231e8aa430dd /tools
parentc82e2889e8259ebd750c3b8f14fefcef74cb1caa (diff)
Makefile: add a better check to ensure a node "release"
Closes #3841. Closes #3842.
Diffstat (limited to 'tools')
-rw-r--r--tools/getnodeisrelease.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/getnodeisrelease.py b/tools/getnodeisrelease.py
new file mode 100644
index 00000000000..a23ad2cf244
--- /dev/null
+++ b/tools/getnodeisrelease.py
@@ -0,0 +1,11 @@
+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