From 4be9c695f0cc48e7f0fe51bf916770ecec16b3c7 Mon Sep 17 00:00:00 2001 From: isaacs Date: Wed, 26 Dec 2012 20:35:00 -0800 Subject: [PATCH] build: Add hyphen to custom build tags so that ./configure --tag=foo makes a version number like v0.9.5-foo instead of v0.9.5foo --- configure | 5 ++++- src/node_version.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 36dbdce..3445153 100755 --- a/configure +++ b/configure @@ -495,7 +495,10 @@ def configure_node(o): else: o['variables']['node_use_perfctr'] = 'false' - o['variables']['node_tag'] = options.tag or '' + if options.tag: + o['variables']['node_tag'] = '-' + options.tag + else: + o['variables']['node_tag'] = '' def configure_libz(o): diff --git a/src/node_version.h b/src/node_version.h index e6e200f..f74b226 100644 --- a/src/node_version.h +++ b/src/node_version.h @@ -27,7 +27,7 @@ #define NODE_PATCH_VERSION 5 #ifndef NODE_TAG -# define NODE_TAG "" +# define NODE_TAG "" #endif #define NODE_VERSION_IS_RELEASE 0 -- 2.7.4