2019-04-16 17:05:31 +02:00
|
|
|
if EXIST %BLENDER_DIR%\..\lib\win64_vc14\llvm\bin\clang-format.exe (
|
|
|
|
|
set CF_PATH=..\lib\win64_vc14\llvm\bin
|
|
|
|
|
goto detect_done
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
echo clang-format not found
|
|
|
|
|
exit /b 1
|
|
|
|
|
|
|
|
|
|
:detect_done
|
|
|
|
|
echo found clang-format in %CF_PATH%
|
|
|
|
|
|
2019-08-13 17:03:09 -06:00
|
|
|
if EXIST %BLENDER_DIR%\..\lib\win64_vc14\python\37\bin\python.exe (
|
|
|
|
|
set PYTHON=%BLENDER_DIR%\..\lib\win64_vc14\python\37\bin\python.exe
|
|
|
|
|
goto detect_python_done
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
echo python not found in lib folder
|
|
|
|
|
exit /b 1
|
|
|
|
|
|
|
|
|
|
:detect_python_done
|
|
|
|
|
echo found python (%PYTHON%)
|
|
|
|
|
|
2019-04-16 16:47:05 +02:00
|
|
|
set FORMAT_PATHS=%BLENDER_DIR%\source\tools\utils_maintenance\clang_format_paths.py
|
2019-04-16 15:34:32 +02:00
|
|
|
|
|
|
|
|
REM The formatting script expects clang-format to be in the current PATH.
|
2019-04-16 17:05:31 +02:00
|
|
|
set PATH=%CF_PATH%;%PATH%
|
2019-04-16 15:34:32 +02:00
|
|
|
|
2019-06-05 07:30:45 -06:00
|
|
|
%PYTHON% %FORMAT_PATHS% %FORMAT_ARGS%
|
2019-04-16 15:34:32 +02:00
|
|
|
|
|
|
|
|
:EOF
|