From 9e5a2118cc15c63088837ce9424e844084d07633 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 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 51aad8db8f72a5..31f621f67319ef 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -534,7 +534,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 ( @@ -561,4 +561,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