From 252cafa0237b6fb3e94159287bbd524965896069 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Thu, 11 Aug 2016 20:18:16 +0100 Subject: [PATCH] build: add missing files to zip and 7z packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add nodevars.bat, node_etw_provider.man and node_perfctr_provider.man to the zip and 7z packages. PR-URL: https://github.com/nodejs/node/pull/8069 Reviewed-By: James M Snell Reviewed-By: joaocgreis - João Reis Reviewed-By: Michael Dawson --- vcbuild.bat | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/vcbuild.bat b/vcbuild.bat index 701127e4d2d2ce..d09f7fcb97389f 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -126,6 +126,8 @@ if "%target%"=="Clean" rmdir /S /Q %~dp0deps\icu call :getnodeversion || exit /b 1 +if "%target%"=="Clean" rmdir /Q /S "%~dp0%config%\node-v%FULLVERSION%-win-%target_arch%" > nul 2> nul + @rem Set environment for msbuild if defined target_env if "%target_env%" NEQ "vc2015" goto vc-set-2013 @@ -242,6 +244,16 @@ copy /Y ..\deps\npm\bin\npm node-v%FULLVERSION%-win-%target_arch%\ > nul if errorlevel 1 echo Cannot copy npm && goto package_error copy /Y ..\deps\npm\bin\npm.cmd node-v%FULLVERSION%-win-%target_arch%\ > nul if errorlevel 1 echo Cannot copy npm.cmd && goto package_error +copy /Y ..\tools\msvs\nodevars.bat node-v%FULLVERSION%-win-%target_arch%\ > nul +if errorlevel 1 echo Cannot copy nodevars.bat && goto package_error +if not defined noetw ( + copy /Y ..\src\res\node_etw_provider.man node-v%FULLVERSION%-win-%target_arch%\ > nul + if errorlevel 1 echo Cannot copy node_etw_provider.man && goto package_error +) +if not defined noperfctr ( + copy /Y ..\src\res\node_perfctr_provider.man node-v%FULLVERSION%-win-%target_arch%\ > nul + if errorlevel 1 echo Cannot copy node_perfctr_provider.man && goto package_error +) echo Creating node-v%FULLVERSION%-win-%target_arch%.7z del node-v%FULLVERSION%-win-%target_arch%.7z > nul 2> nul