echo off

rem Create a command line GENERATEVSCMD that looks like this:
rem .\ALCodeStyle.exe --style=allman  --recursive /home/project/*.cpp,*.h

rem .\astyle.exe --style=allman --lineend=windows --indent=spaces=2 --indent-switches --indent-cases --add-brackets --add-one-line-brackets --align-pointer=type --unpad-paren --break-blocks --pad-oper my_file.c
rem .\astyle.exe --style=allman --lineend=windows --indent=spaces=2 --indent-switches --indent-cases --add-brackets --add-one-line-brackets --align-pointer=type --unpad-paren --break-blocks --pad-oper my_file.h

set HeaderFilesPath=.\..\ALCodeStyle\*.cpp
set SourceFilesPath=.\..\ALCodeStyle\*.h
Set ToolPath=.\ALCodeStyle.exe

echo.
echo +++ RunALCodeStyle.bat: +++
echo.

set GENERATEVSCMD=%ToolPath% --style=allman --lineend=windows --indent=spaces=2 --indent-switches --indent-cases --add-brackets --add-one-line-brackets --align-pointer=type --unpad-paren --break-blocks --pad-oper --recursive %HeaderFilesPath% %SourceFilesPath% 

echo GENERATEVSCMD %GENERATEVSCMD%

%GENERATEVSCMD%
