From 93b4a8271a58fa8ee1261d541ae1eeb45a954711 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 28 Apr 2017 04:13:07 +0300 Subject: build/wdk7.1: refactoring --- km/build/wdk7.1/clean_drivers.bat | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'km/build/wdk7.1/clean_drivers.bat') diff --git a/km/build/wdk7.1/clean_drivers.bat b/km/build/wdk7.1/clean_drivers.bat index 8442c90..100c0da 100644 --- a/km/build/wdk7.1/clean_drivers.bat +++ b/km/build/wdk7.1/clean_drivers.bat @@ -6,8 +6,10 @@ @setlocal enabledelayedexpansion @echo off -for /f "delims=" %%i in ('dir "%src_root%\sources" /b /s') do ( - set "driver_src_root=%%~dpi" +call check_env.bat || exit /b !errorlevel! + +for /f "delims=" %%i in ('dir "%proj_src_dir%\sources" /b /s') do ( + set "drv_src_dir=%%~dpi" echo. - call clean_driver.bat "!driver_src_root:~0,-1!" || exit /b !errorlevel! + call clean_driver.bat "!drv_src_dir:~0,-1!" || exit /b !errorlevel! ) -- cgit v1.2.3