traclightningのリポジトリ
Revision | 881b62813ea9765dafdc3c0aa126e1b5275a1956 (tree) |
---|---|
Time | 2011-06-11 11:30:10 |
Author | kanu_orz |
Commiter | kanu_orz |
Added Check version description
@@ -28,7 +28,7 @@ | ||
28 | 28 | echo Copying clean source tree to build... |
29 | 29 | hg archive tmp |
30 | 30 | call tmp\build.cmd --without-check |
31 | - if exist "%DIR%tmp\TracLightning.exe" copy/y "%DIR%tmp\TracLightning.exe" "%DIR%" >nul | |
31 | + if exist "%DIR%tmp\TracLightning*.exe" copy/y "%DIR%tmp\TracLightning*.exe" "%DIR%" >nul | |
32 | 32 | goto :end_of_script |
33 | 33 | ) |
34 | 34 |
@@ -40,6 +40,18 @@ | ||
40 | 40 | ) |
41 | 41 | if not "%GO_BUILD_STAGE%" == "y" goto :end_of_script |
42 | 42 | |
43 | + | |
44 | +REM Comparing Version number in configuration files | |
45 | +echo Comparing version number in configuration files... | |
46 | +for /f %%i in ('sed -n "s/^AppVerName.*\(.\..\..*$\)/\1/p" trac.iss') do SET AppVerName=%%i | |
47 | +for /f %%i in ('sed -n "s/^footer.*\(.\..\..*$\)/\1/p" install\replace\trac.ini.in') do SET footer=%%i | |
48 | +if not "%AppVerName%"=="%footer%" ( | |
49 | + echo Unmuched version description. Plaese check trac.iss and install\replace\trac.ini.in. | |
50 | + goto :end_of_script | |
51 | +) | |
52 | +set BUILDVER=-%AppVerName% | |
53 | + | |
54 | + | |
43 | 55 | set BINDIR=%DIR%bin |
44 | 56 | set PYTHONHOME=%DIR%python |
45 | 57 | set PYTHON=%PYTHONHOME%\python.exe |
@@ -68,6 +80,7 @@ | ||
68 | 80 | mkdir tmp\build\Lib\site-packages |
69 | 81 | mkdir tmp\egg-cache |
70 | 82 | |
83 | + | |
71 | 84 | REM Generate easy_install script |
72 | 85 | echo Preparing setuptools... |
73 | 86 | set PYTHONPATH=%DISTDIR%\Lib\site-packages;%SETUPTOOLS_LIB% |
@@ -139,8 +152,8 @@ | ||
139 | 152 | ) |
140 | 153 | ) |
141 | 154 | |
142 | -echo Building TracLightning.exe... | |
143 | -"%ISCC%" /Q /FTracLightning trac.iss | |
155 | +echo Building TracLightning%BUILDVER%.exe... | |
156 | +"%ISCC%" /Q /FTracLightning%BUILDVER% trac.iss | |
144 | 157 | |
145 | 158 | :end_of_script |
146 | 159 | popd |