Skip to content

Commit

Permalink
Add a script to build all samples
Browse files Browse the repository at this point in the history
  • Loading branch information
wm1 committed Mar 21, 2017
1 parent 88541f7 commit bc6e698
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions build-dir.cmd
@@ -0,0 +1,25 @@
@echo off
setlocal
set logfile=%cd%\build-result.log
del %logfile% 2>nul
call :check_folder . .
goto :eof

rem =========================================
rem check_folder
rem $1 - sub-folder name
rem $2 - full path to the sub-folder
rem
:check_folder
pushd %1
if exist *.sln (
echo %2
echo === %2 >> %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
)
popd

0 comments on commit bc6e698

Please sign in to comment.