node/tools/getstability.py
Julien Gilli ec861f6f90 build: make release process easier for multi users
Use staging area on nodejs.org instead of TJ's account. Also pushes
release tag and branch to personal forks rather than joyent/node, which
makes errors have less impact.

Pushing release tags and branches is left as a manual step for the
release managers, when they decide the timing is best.

PR: #25638
PR-URL: https://github.com/joyent/node/pull/25638
Reviewed-By: Sam Roberts <sam@strongloop.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2015-07-16 15:58:12 -07:00

25 lines
623 B
Python

import os, re, sys
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_MAJOR_VERSION', line):
major = line.split()[2]
if re.match('#define NODE_MINOR_VERSION', line):
minor = line.split()[2]
if re.match('#define NODE_PATCH_VERSION', line):
patch = line.split()[2]
major_minor = major + '.' + minor
if major_minor == '0.10':
print 'maintenance'
elif major_minor == '0.12':
print 'stable'
elif minor % 2 != 0:
print 'unstable'
else:
print 'Unknown stability status, exiting'
sys.exit(1)