• R/O
  • SSH
  • HTTPS

hands-free: 提交


Commit MetaInfo

修订版68 (tree)
时间2011-05-22 20:40:52
作者(del#42492)

Log Message

ビルドの結果がわかり易いようにスクリプトを修正した。

更改概述

差异

--- trunk/external/Archiver/build-all.bat (revision 67)
+++ trunk/external/Archiver/build-all.bat (revision 68)
@@ -7,24 +7,61 @@
77
88 @ECHO OFF
99
10-CALL "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
10+REM --------------------------------------------------
11+REM 事前処理
12+REM --------------------------------------------------
1113
12-msbuild ..\..\main\core\spcf-core.vcxproj /t:Clean;Build /p:configuration=DEBUG
13-msbuild ..\..\main\core\spcf-core.vcxproj /t:Clean;Build /p:configuration=RELEASE
14+SET STDOUT=stdout.log
15+SET STDERR=stderr.log
1416
15-msbuild ..\..\main\grammar\spcf-grammar.vcxproj /t:Clean;Build /p:configuration=DEBUG
16-msbuild ..\..\main\grammar\spcf-grammar.vcxproj /t:Clean;Build /p:configuration=RELEASE
17+DEL %STDOUT% 2> nul
18+DEL %STDERR% 2> nul
1719
18-msbuild ..\..\main\processor\spcf-processor.vcxproj /t:Clean;Build /p:configuration=DEBUG
19-msbuild ..\..\main\processor\spcf-processor.vcxproj /t:Clean;Build /p:configuration=RELEASE
20+ECHO [%DATE% %TIME%] BUILD START ...
2021
21-msbuild ..\..\main\view\spcf-view.vcxproj /t:Clean;Build /p:configuration=DEBUG
22-msbuild ..\..\main\view\spcf-view.vcxproj /t:Clean;Build /p:configuration=RELEASE
22+CALL "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" >> "%STDOUT%" 2>> "%STDERR%"
23+IF %ERRORLEVEL% NEQ 0 GOTO :FAILED
2324
24-msbuild ..\..\main\sapi\spcf-sapi.vcxproj /t:Clean;Build /p:configuration=DEBUG
25-msbuild ..\..\main\sapi\spcf-sapi.vcxproj /t:Clean;Build /p:configuration=RELEASE
25+REM --------------------------------------------------
26+REM メイン処理
27+REM --------------------------------------------------
2628
27-msbuild ..\..\main\engine-factory\spcf-engine-factory.vcxproj /t:Clean;Build /p:configuration=DEBUG
28-msbuild ..\..\main\engine-factory\spcf-engine-factory.vcxproj /t:Clean;Build /p:configuration=RELEASE
29+CALL :BUILD core
30+CALL :BUILD processor
31+CALL :BUILD view
32+CALL :BUILD sapi
33+CALL :BUILD engine-factory
2934
30-@ENDLOCAL
35+REM --------------------------------------------------
36+REM 事後処理
37+REM --------------------------------------------------
38+
39+ECHO [%DATE% %TIME%] BUILD SUCCEESSED ...
40+
41+EXIT /B 0
42+
43+REM --------------------------------------------------
44+REM ビルド関数
45+REM --------------------------------------------------
46+
47+:BUILD
48+
49+SET PACKAGE=%1
50+ECHO [%DATE% %TIME%] BUILD START %PACKAGE%
51+msbuild ..\..\main\%PACKAGE%\spcf-%PACKAGE%.vcxproj /t:Clean;Build /p:configuration=DEBUG >> "%STDOUT%" 2>> "%STDERR%"
52+IF %ERRORLEVEL% NEQ 0 GOTO :FAILED
53+msbuild ..\..\main\%PACKAGE%\spcf-%PACKAGE%.vcxproj /t:Clean;Build /p:configuration=RELEASE >> "%STDOUT%" 2>> "%STDERR%"
54+IF %ERRORLEVEL% NEQ 0 GOTO :FAILED
55+ECHO [%DATE% %TIME%] BUILD FINISH %PACKAGE%
56+
57+EXIT /B 0
58+
59+REM --------------------------------------------------
60+REM エラーの出力
61+REM --------------------------------------------------
62+
63+:FAILED
64+
65+ECHO [%DATE% %TIME%] BUILD FAILED ... RETURNCODE = %ERRORLEVEL%
66+
67+EXIT /B %ERRORLEVEL%
Show on old repository browser