1@echo off 2set start=%time% 3@echo on 4 5SET scriptdir=%~dp0 6 7call %scriptdir%\clean-win.bat 8 9echo "*** BUILDING MILKDROP ***" 10MSBuild.exe ../milkdrop2-musikcube/milkdrop2-musikcube.sln /m /nologo /verbosity:minimal /p:Configuration=Release /p:Platform=Win32 11 12echo "*** BUILDING WIN32 ***" 13MSBuild.exe musikcube.sln /m /nologo /verbosity:minimal /p:Configuration=Release-Win /p:Platform=Win32 14MSBuild.exe musikcube.sln /m /nologo /verbosity:minimal /p:Configuration=Release-Con /p:Platform=Win32 15MSBuild.exe musikcube.sln /m /nologo /verbosity:minimal /p:Configuration=Release-DLL /p:Platform=Win32 16 17echo "*** BUILDING x64 ***" 18MSBuild.exe musikcube.sln /m /nologo /verbosity:minimal /p:Configuration=Release-Win /p:Platform=x64 19MSBuild.exe musikcube.sln /m /nologo /verbosity:minimal /p:Configuration=Release-Con /p:Platform=x64 20MSBuild.exe musikcube.sln /m /nologo /verbosity:minimal /p:Configuration=Release-DLL /p:Platform=x64 21 22echo "*** DONE ***" 23@echo off 24set end=%time% 25set options="tokens=1-4 delims=:.," 26for /f %options% %%a in ("%start%") do set start_h=%%a&set /a start_m=100%%b %% 100&set /a start_s=100%%c %% 100&set /a start_ms=100%%d %% 100 27for /f %options% %%a in ("%end%") do set end_h=%%a&set /a end_m=100%%b %% 100&set /a end_s=100%%c %% 100&set /a end_ms=100%%d %% 100 28set /a hours=%end_h%-%start_h% 29set /a mins=%end_m%-%start_m% 30set /a secs=%end_s%-%start_s% 31set /a ms=%end_ms%-%start_ms% 32if %ms% lss 0 set /a secs = %secs% - 1 & set /a ms = 100%ms% 33if %secs% lss 0 set /a mins = %mins% - 1 & set /a secs = 60%secs% 34if %mins% lss 0 set /a hours = %hours% - 1 & set /a mins = 60%mins% 35if %hours% lss 0 set /a hours = 24%hours% 36if 1%ms% lss 100 set ms=0%ms% 37set /a totalsecs = %hours%*3600 + %mins%*60 + %secs% 38@echo on 39echo Build time: %hours%:%mins%:%secs%.%ms% (%totalsecs%.%ms%s total) 40