build,windows: restore DISTTYPEDIR

* 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 <tniessen@tnie.de>
Reviewed-By: João Reis <reis@janeasystems.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
This commit is contained in:
Refael Ackermann authored and Myles Borins committed 2017-09-05 12:49:51 -04:00
1 parent 2a1a93dcbf
commit c2090a0634
1 file changed
+5 -2
+5 -2
View File
@@ -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