From: Steve Holme Date: Sun, 28 Dec 2014 01:10:03 +0000 (+0000) Subject: checksrc.bat: Fixed a problem opening files with spaces in the filename X-Git-Tag: curl-7_40_0~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=097fc121e684a4d0c252ab768cb1b5b186dc43f8;p=curl checksrc.bat: Fixed a problem opening files with spaces in the filename --- diff --git a/projects/checksrc.bat b/projects/checksrc.bat index e2e257495..139914dd8 100644 --- a/projects/checksrc.bat +++ b/projects/checksrc.bat @@ -43,10 +43,10 @@ rem *************************************************************************** if not exist "%SRC_DIR%" goto nosrc :start - for /F %%i in ('dir %SRC_DIR%\src\*.c.* /b') do @perl %SRC_DIR%\lib\checksrc.pl -D%SRC_DIR%\src %%i - for /F %%i in ('dir %SRC_DIR%\src\*.h.* /b') do @perl %SRC_DIR%\lib\checksrc.pl -D%SRC_DIR%\src %%i - for /F %%i in ('dir %SRC_DIR%\lib\*.c.* /b') do @perl %SRC_DIR%\lib\checksrc.pl -D%SRC_DIR%\lib %%i - for /F %%i in ('dir %SRC_DIR%\lib\*.h.* /b') do @perl %SRC_DIR%\lib\checksrc.pl -D%SRC_DIR%\lib -Wcurl_config.h.cmake %%i + for /f "delims=" %%i in ('dir %SRC_DIR%\src\*.c.* /b') do @perl %SRC_DIR%\lib\checksrc.pl -D%SRC_DIR%\src "%%i" + for /f "delims=" %%i in ('dir %SRC_DIR%\src\*.h.* /b') do @perl %SRC_DIR%\lib\checksrc.pl -D%SRC_DIR%\src "%%i" + 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" goto success :syntax