Loading projects/checksrc.bat +31 −14 Original line number Diff line number Diff line Loading @@ -27,6 +27,8 @@ rem *************************************************************************** rem Set our variables setlocal set CHECK_LIB=TRUE set CHECK_SRC=TRUE :parseArgs if "%~1" == "" goto prerequisites Loading @@ -37,6 +39,12 @@ rem *************************************************************************** goto syntax ) else if /i "%~1" == "-help" ( goto syntax ) else if /i "%~1" == "lib" ( set CHECK_LIB=TRUE set CHECK_SRC=FALSE ) else if /i "%~1" == "src" ( set CHECK_LIB=FALSE set CHECK_SRC=TRUE ) else ( if not defined SRC_DIR ( set SRC_DIR=%~1% Loading Loading @@ -68,12 +76,15 @@ rem *************************************************************************** if not exist "%SRC_DIR%" goto nosrc :start if "%CHECK_SRC%" == "TRUE" ( rem Check the src directory if exist %SRC_DIR%\src ( for /f "delims=" %%i in ('dir "%SRC_DIR%\src\*.c.*" /b 2^>NUL') 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 2^>NUL') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\src" "%%i" ) ) if "%CHECK_LIB%" == "TRUE" ( rem Check the lib directory if exist %SRC_DIR%\lib ( for /f "delims=" %%i in ('dir "%SRC_DIR%\lib\*.c.*" /b 2^>NUL') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\lib" "%%i" Loading @@ -85,13 +96,19 @@ rem *************************************************************************** for /f "delims=" %%i in ('dir "%SRC_DIR%\lib\vtls\*.c.*" /b 2^>NUL') 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 2^>NUL') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\lib\vtls" "%%i" ) ) goto success :syntax rem Display the help echo. echo Usage: checksrc [directory] echo Usage: checksrc [product] [directory] echo. echo Product: echo. echo lib - Scan the libcurl source echo src - Scan the command-line tool source echo. echo directory - Specifies the curl source directory goto success Loading Loading
projects/checksrc.bat +31 −14 Original line number Diff line number Diff line Loading @@ -27,6 +27,8 @@ rem *************************************************************************** rem Set our variables setlocal set CHECK_LIB=TRUE set CHECK_SRC=TRUE :parseArgs if "%~1" == "" goto prerequisites Loading @@ -37,6 +39,12 @@ rem *************************************************************************** goto syntax ) else if /i "%~1" == "-help" ( goto syntax ) else if /i "%~1" == "lib" ( set CHECK_LIB=TRUE set CHECK_SRC=FALSE ) else if /i "%~1" == "src" ( set CHECK_LIB=FALSE set CHECK_SRC=TRUE ) else ( if not defined SRC_DIR ( set SRC_DIR=%~1% Loading Loading @@ -68,12 +76,15 @@ rem *************************************************************************** if not exist "%SRC_DIR%" goto nosrc :start if "%CHECK_SRC%" == "TRUE" ( rem Check the src directory if exist %SRC_DIR%\src ( for /f "delims=" %%i in ('dir "%SRC_DIR%\src\*.c.*" /b 2^>NUL') 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 2^>NUL') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\src" "%%i" ) ) if "%CHECK_LIB%" == "TRUE" ( rem Check the lib directory if exist %SRC_DIR%\lib ( for /f "delims=" %%i in ('dir "%SRC_DIR%\lib\*.c.*" /b 2^>NUL') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\lib" "%%i" Loading @@ -85,13 +96,19 @@ rem *************************************************************************** for /f "delims=" %%i in ('dir "%SRC_DIR%\lib\vtls\*.c.*" /b 2^>NUL') 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 2^>NUL') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\lib\vtls" "%%i" ) ) goto success :syntax rem Display the help echo. echo Usage: checksrc [directory] echo Usage: checksrc [product] [directory] echo. echo Product: echo. echo lib - Scan the libcurl source echo src - Scan the command-line tool source echo. echo directory - Specifies the curl source directory goto success Loading