From a7d8ee9cd8007b4c4b22d9b49f460fd950d60d30 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 26 Apr 2017 20:12:56 +0300 Subject: build_driver.bat: don't sign missing binaries --- build_driver.bat | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/build_driver.bat b/build_driver.bat index 85e08ac..2020dd9 100644 --- a/build_driver.bat +++ b/build_driver.bat @@ -55,15 +55,19 @@ set sys_path=%driver_src_root%\obj%BUILD_ALT_DIR%\%buildarch_directory%\%driver_ set pdb_path=%driver_src_root%\obj%BUILD_ALT_DIR%\%buildarch_directory%\%driver_name%.pdb set lib_path=%driver_src_root%\obj%BUILD_ALT_DIR%\%buildarch_directory%\%driver_name%.lib -echo. -call "%root%\sign.bat" "%sys_path%" || exit /b !errorlevel! +if exist "%sys_path%" ( + echo. + call "%root%\sign.bat" "%sys_path%" || exit /b !errorlevel! +) echo. echo ============================== DISTR ============================== -call :distr_copy "%pdb_path%" "%pdb_dist_dir%" || goto :distr_failure -call :distr_copy "%sys_path%" "%sys_dist_dir%" || goto :distr_failure +if exist "%sys_path%" ( + call :distr_copy "%sys_path%" "%sys_dist_dir%" || goto :distr_failure + call :distr_copy "%pdb_path%" "%pdb_dist_dir%" || goto :distr_failure +) if exist "%lib_path%" ( - call :distr_copy "%lib_path%" || goto :distr_failure + call :distr_copy "%lib_path%" "%lib_dist_dir%" || goto :distr_failure ) echo ========================== DISTR SUCCESS ========================== exit /b -- cgit v1.2.3