diff options
author | Steve Holme <steve_holme@hotmail.com> | 2015-08-08 11:35:59 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2015-08-08 11:36:47 +0100 |
commit | 333c36b2760eb51da5ff2f6dc9030c4bba71f506 (patch) | |
tree | 41a165e2ffc453d8666a71c6d8251b5dca6c34f2 /projects | |
parent | 1ab763acce1151c502d269ff28839ca08b142050 (diff) | |
download | curl-333c36b2760eb51da5ff2f6dc9030c4bba71f506.tar.gz |
checksrc.bat: Fixed error when [directory] isn't a curl source directory
The system cannot find the file specified.
Diffstat (limited to 'projects')
-rw-r--r-- | projects/checksrc.bat | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/projects/checksrc.bat b/projects/checksrc.bat index 0632b2f64..43fea1258 100644 --- a/projects/checksrc.bat +++ b/projects/checksrc.bat @@ -62,16 +62,22 @@ rem *************************************************************************** :start rem Check the src directory - for /f "delims=" %%i in ('dir "%SRC_DIR%\src\*.c.*" /b') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\src" -Wtool_hugehelp.c "%%i" - for /f "delims=" %%i in ('dir "%SRC_DIR%\src\*.h.*" /b') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\src" "%%i" + if exist %SRC_DIR%\src ( + for /f "delims=" %%i in ('dir "%SRC_DIR%\src\*.c.*" /b') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\src" -Wtool_hugehelp.c "%%i" + for /f "delims=" %%i in ('dir "%SRC_DIR%\src\*.h.*" /b') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\src" "%%i" + ) rem Check the lib directory - for /f "delims=" %%i in ('dir "%SRC_DIR%\lib\*.c.*" /b') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\lib" "%%i" - for /f "delims=" %%i in ('dir "%SRC_DIR%\lib\*.h.*" /b') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\lib" -Wcurl_config.h.cmake "%%i" + if exist %SRC_DIR%\lib ( + for /f "delims=" %%i in ('dir "%SRC_DIR%\lib\*.c.*" /b') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\lib" "%%i" + for /f "delims=" %%i in ('dir "%SRC_DIR%\lib\*.h.*" /b') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\lib" -Wcurl_config.h.cmake "%%i" + ) rem Check the vtls directory - for /f "delims=" %%i in ('dir "%SRC_DIR%\lib\vtls\*.c.*" /b') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\lib\vtls" "%%i" - for /f "delims=" %%i in ('dir "%SRC_DIR%\lib\vtls\*.h.*" /b') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\lib\vtls" "%%i" + if exist %SRC_DIR%\vtls ( + for /f "delims=" %%i in ('dir "%SRC_DIR%\lib\vtls\*.c.*" /b') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\lib\vtls" "%%i" + for /f "delims=" %%i in ('dir "%SRC_DIR%\lib\vtls\*.h.*" /b') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\lib\vtls" "%%i" + ) goto success |