From c2090a0634773b4e9bc0170a224dcffa3bb4fdf7 Mon Sep 17 00:00:00 2001 From: Refael Ackermann Date: Wed, 28 Jun 2017 14:09:00 -0400 Subject: [PATCH] build,windows: restore DISTTYPEDIR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * rename :exit to :distexit Backport-PR-URL: https://github.com/nodejs/node/pull/14842 PR-URL: https://github.com/nodejs/node/pull/13969 Refs: https://github.com/nodejs/node/pull/13900#pullrequestreview-46906389 Reviewed-By: Tobias Nießen Reviewed-By: João Reis Reviewed-By: James M Snell Reviewed-By: Gibson Fahnestock Reviewed-By: Rod Vagg --- vcbuild.bat | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vcbuild.bat b/vcbuild.bat index 34130c5ccdc060..08a396d6644588 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -405,7 +405,7 @@ if not defined NODE_VERSION ( if not defined DISTTYPE set DISTTYPE=release if "%DISTTYPE%"=="release" ( set FULLVERSION=%NODE_VERSION% - exit /b 0 + goto distexit ) if "%DISTTYPE%"=="custom" ( if not defined CUSTOMTAG ( @@ -432,4 +432,7 @@ if not "%DISTTYPE%"=="custom" ( set TAG=%DISTTYPE%%DATESTRING%%COMMIT% ) set FULLVERSION=%NODE_VERSION%-%TAG% -exit /b 0 + +:distexit +if not defined DISTTYPEDIR set DISTTYPEDIR=%DISTTYPE% +goto :EOF