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
diff options
context:
space:
mode:
authorTimothy J Fontaine <tjfontaine@gmail.com>2013-03-05 23:05:50 +0400
committerisaacs <i@izs.me>2013-03-06 02:43:27 +0400
commitf9ba9f7badf40ad6360526095b7bec8e3319752b (patch)
treeeddc8f99f9b19c0dead92e8223e98b931f8ce8c6 /vcbuild.bat
parent312289b791a5924eec5748fbd19ad6867ff37320 (diff)
build: define nightly tag external to build system
Diffstat (limited to 'vcbuild.bat')
-rw-r--r--vcbuild.bat6
1 files changed, 4 insertions, 2 deletions
diff --git a/vcbuild.bat b/vcbuild.bat
index 82bec7b6441..5bc63396ed6 100644
--- a/vcbuild.bat
+++ b/vcbuild.bat
@@ -84,10 +84,12 @@ if defined noperfctr set noperfctr_arg=--without-perfctr& set noperfctr_msi_arg=
@rem Skip project generation if requested.
if defined noprojgen goto msbuild
+if defined NIGHTLY set TAG=nightly-%NIGHTLY%
+
@rem Generate the VS project.
SETLOCAL
if defined VS100COMNTOOLS call "%VS100COMNTOOLS%\VCVarsQueryRegistry.bat"
- python configure %debug_arg% %nosnapshot_arg% %noetw_arg% %noperfctr_arg% --dest-cpu=%target_arch%
+ python configure %debug_arg% %nosnapshot_arg% %noetw_arg% %noperfctr_arg% --dest-cpu=%target_arch% --tag=%TAG%
if errorlevel 1 goto create-msvs-files-failed
if not exist node.sln goto create-msvs-files-failed
echo Project files generated.
@@ -133,7 +135,7 @@ if not defined msi goto run
call :getnodeversion
if not defined NIGHTLY goto msibuild
-set NODE_VERSION=%NODE_VERSION%-%date:~10,4%%date:~4,2%%date:~7,2%
+set NODE_VERSION=%NODE_VERSION%.%NIGHTLY%
:msibuild
echo Building node-%NODE_VERSION%