diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-04-26 22:02:45 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-04-26 22:02:45 +0300 |
commit | 7aed85f519bada49595232bd4408ab9ae006d4e1 (patch) | |
tree | edede6f8d7a17cc22edbe30103e149d193e492a6 /clean_driver.bat | |
parent | build_driver.bat: don't sign missing binaries (diff) | |
download | windows7-drivers-7aed85f519bada49595232bd4408ab9ae006d4e1.tar.gz windows7-drivers-7aed85f519bada49595232bd4408ab9ae006d4e1.zip |
consistent indentation in *.bat files
Diffstat (limited to 'clean_driver.bat')
-rw-r--r-- | clean_driver.bat | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/clean_driver.bat b/clean_driver.bat index d3f40d8..a74a1a6 100644 --- a/clean_driver.bat +++ b/clean_driver.bat @@ -7,8 +7,8 @@ @echo off if [%1] == [] ( - echo Usage: %~0 DRIVER_SRC_ROOT - exit /b 1 + echo Usage: %~0 DRIVER_SRC_ROOT + exit /b 1 ) call check_ddk.bat || exit /b !errorlevel! @@ -18,8 +18,8 @@ set driver_src_root=%~f1 cd "%driver_src_root%" for /f %%i in ("%driver_src_root%") do ( - set driver_name=%%~ni - set driver_dist_root=%%~dpi + set driver_name=%%~ni + set driver_dist_root=%%~dpi ) call :make_relative driver_dist_root "%src_root%" @@ -46,15 +46,17 @@ exit /b :clean_rmdir if exist "%~1\" ( - echo rmdir /s /q "%~1"... - rmdir /s /q "%~1" >nul || exit /b !errorlevel! + echo rmdir /s /q "%~1" + rmdir /s /q "%~1" >nul + exit /b !errorlevel! ) exit /b :clean_del if exist "%~1" ( - echo del "%~1" - del "%~1" >nul || exit /b !errorlevel! + echo del "%~1" + del "%~1" >nul + exit /b !errorlevel! ) exit /b @@ -73,13 +75,13 @@ for /f "tokens=*" %%a in ("%base%") do set base=%%~fa set match= set c= for /f "tokens=*" %%a in ('echo.%base:\=^&echo.%') do ( - set sub=!sub!%%a\ - call set tmp=%%src:!sub!=%% - if "!tmp!" neq "!src!" ( - set match=!sub! - ) else ( - set upper=!upper!..\ - ) + set sub=!sub!%%a\ + call set tmp=%%src:!sub!=%% + if "!tmp!" neq "!src!" ( + set match=!sub! + ) else ( + set upper=!upper!..\ + ) ) set src=%upper%!src:%match%=! (endlocal |