Skip to content

Commit

Permalink
Allow space in folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
wm1 committed Oct 3, 2017
1 parent 5a706e6 commit b649103
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions build-dir.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@ rem $1 - sub-folder name
rem $2 - full path to the sub-folder
rem
:check_folder
pushd %1
set name=%1
set fullpath=%2
set name=%name:"=%
set fullpath=%fullpath:"=%
pushd "%name%"
if exist *.sln (
echo %2
echo === %2 >> %logfile%
echo %fullpath%
echo === %fullpath% >> %logfile%

for /f %%i in ('dir /b *.sln') do (
msbuild /nologo /v:q /m /t:rebuild %%i >> %logfile%
)
) else (
for /f %%i in ('dir /b /ad') do call :check_folder %%i %2/%%i
for /d %%i in (*) do (
call :check_folder "%%i" "%fullpath%/%%i"
)
)
popd

0 comments on commit b649103

Please sign in to comment.