4392.3.9
by Sidnei da Silva
- Getting really close now |
1 |
@echo off |
2 |
setlocal
|
|
3 |
||
4392.3.22
by Sidnei da Silva
- Fix a few SNAFUs |
4 |
set ROOT=${buildout:directory} |
5 |
||
4392.3.23
by Sidnei da Silva
- Define targets as 'release' and 'dev', allow passing them through make |
6 |
set RELEASE=%ROOT%\release\bzr.${settings:bzr-release} |
4392.3.21
by Sidnei da Silva
- Make build-installer work for both trunk and latest of both bzr and plugins |
7 |
set DEV=%ROOT%\dev\bzr.dev |
8 |
set TARGET= |
|
9 |
set BZR_TARGET= |
|
10 |
set PLUGIN_TARGET= |
|
4392.3.22
by Sidnei da Silva
- Fix a few SNAFUs |
11 |
|
4392.3.4
by Sidnei da Silva
- Start of a batch file |
12 |
set SVN_DEV=${buildout:directory}/${svn-dev:destination} |
13 |
set SVN_BDB=${buildout:directory}/${svn-db4:destination} |
|
14 |
set SVN_LIBINTL=${buildout:directory}/${svn-libintl:destination} |
|
15 |
set TBZR=${buildout:directory}/tbzr/trunk |
|
4392.3.19
by Sidnei da Silva
- Work around and build installers directly, copy all of them to the same directory |
16 |
set INSTALLERS=%ROOT%\installers |
4392.3.9
by Sidnei da Silva
- Getting really close now |
17 |
set PYTHON=${buildout:executable} |
4392.3.22
by Sidnei da Silva
- Fix a few SNAFUs |
18 |
|
4392.3.17
by Sidnei da Silva
- Build tbzr with release bzrlib in path |
19 |
set ORIGINAL_PYTHONPATH=%PYTHONPATH% |
4392.3.9
by Sidnei da Silva
- Getting really close now |
20 |
set ORIGINAL_DIRECTORY=%CD% |
21 |
||
4392.3.22
by Sidnei da Silva
- Fix a few SNAFUs |
22 |
set BUILD_ERROR=0 |
23 |
||
4392.3.9
by Sidnei da Silva
- Getting really close now |
24 |
set TORTOISE_OVERLAYS_MSI_WIN32_CMD=%PYTHON% %ROOT%/ostools.py basename ${settings:tortoise-overlays-win32-url} |
25 |
FOR /f "tokens=1 delims= " %%G IN ('%TORTOISE_OVERLAYS_MSI_WIN32_CMD%') DO set BASENAME=%%G |
|
4392.3.14
by Sidnei da Silva
- Get rid of 'build' directory. Just call make installer |
26 |
set TORTOISE_OVERLAYS_MSI_WIN32=${buildout:directory}/tortoise-overlays/%BASENAME% |
4392.3.9
by Sidnei da Silva
- Getting really close now |
27 |
|
28 |
set TORTOISE_OVERLAYS_MSI_X64_CMD=%PYTHON% %ROOT%/ostools.py basename ${settings:tortoise-overlays-x64-url} |
|
29 |
FOR /f "tokens=1 delims= " %%G IN ('%TORTOISE_OVERLAYS_MSI_X64_CMD%') DO set BASENAME=%%G |
|
4392.3.14
by Sidnei da Silva
- Get rid of 'build' directory. Just call make installer |
30 |
set TORTOISE_OVERLAYS_MSI_X64=${buildout:directory}/tortoise-overlays/%BASENAME% |
4392.3.9
by Sidnei da Silva
- Getting really close now |
31 |
|
4392.3.12
by Sidnei da Silva
- Call 'make docs' |
32 |
FOR /f "tokens=1 delims= " %%G IN ('cygpath %PYTHON%') DO set CYG_PYTHON=%%G |
33 |
||
4392.3.21
by Sidnei da Silva
- Make build-installer work for both trunk and latest of both bzr and plugins |
34 |
:ARGS |
4392.3.23
by Sidnei da Silva
- Define targets as 'release' and 'dev', allow passing them through make |
35 |
if "%1"=="release" (set TARGET=%RELEASE%) & (set BZR_TARGET=release) & shift & goto ARGS |
4392.3.21
by Sidnei da Silva
- Make build-installer work for both trunk and latest of both bzr and plugins |
36 |
if "%1"=="dev" (set TARGET=%DEV%) & (set BZR_TARGET=trunk) & shift & goto ARGS |
4392.3.23
by Sidnei da Silva
- Define targets as 'release' and 'dev', allow passing them through make |
37 |
if "%1"=="plugin-release" (set PLUGIN_TARGET=release) & shift & goto ARGS |
4392.3.21
by Sidnei da Silva
- Make build-installer work for both trunk and latest of both bzr and plugins |
38 |
if "%1"=="plugin-dev" (set PLUGIN_TARGET=trunk) & shift & goto ARGS |
39 |
||
4392.3.23
by Sidnei da Silva
- Define targets as 'release' and 'dev', allow passing them through make |
40 |
if not defined TARGET (set TARGET=%RELEASE%) & (set BZR_TARGET=release) |
41 |
if not defined PLUGIN_TARGET (set PLUGIN_TARGET=release) |
|
4392.3.21
by Sidnei da Silva
- Make build-installer work for both trunk and latest of both bzr and plugins |
42 |
|
4392.3.22
by Sidnei da Silva
- Fix a few SNAFUs |
43 |
%PYTHON% %ROOT%/ostools.py remove %TARGET% |
44 |
@if %ERRORLEVEL% NEQ 0 (set BUILD_ERROR=%ERRORLEVEL%) & goto End |
|
45 |
||
4392.3.21
by Sidnei da Silva
- Make build-installer work for both trunk and latest of both bzr and plugins |
46 |
%PYTHON% %ROOT%/ostools.py makedir %TARGET% |
47 |
@if %ERRORLEVEL% NEQ 0 (set BUILD_ERROR=%ERRORLEVEL%) & goto End |
|
48 |
||
49 |
%PYTHON% %ROOT%/ostools.py makedir %INSTALLERS% |
|
50 |
@if %ERRORLEVEL% NEQ 0 (set BUILD_ERROR=%ERRORLEVEL%) & goto End |
|
51 |
||
52 |
bzr co %ROOT%/bzr/%BZR_TARGET% %TARGET% |
|
53 |
@if %ERRORLEVEL% NEQ 0 (set BUILD_ERROR=%ERRORLEVEL%) & goto End |
|
54 |
||
55 |
cd %ROOT%/subvertpy/%PLUGIN_TARGET% |
|
4392.3.25
by Sidnei da Silva
- Fixup a couple more targets |
56 |
%PYTHON% setup.py install -O1 --install-lib=%TARGET% |
4392.3.21
by Sidnei da Silva
- Make build-installer work for both trunk and latest of both bzr and plugins |
57 |
@if %ERRORLEVEL% NEQ 0 (set BUILD_ERROR=%ERRORLEVEL%) & goto End |
58 |
||
59 |
cd %ROOT%/bzrtools/%PLUGIN_TARGET% |
|
4392.3.25
by Sidnei da Silva
- Fixup a couple more targets |
60 |
%PYTHON% setup.py install -O1 --install-lib=%TARGET% |
4392.3.21
by Sidnei da Silva
- Make build-installer work for both trunk and latest of both bzr and plugins |
61 |
@if %ERRORLEVEL% NEQ 0 (set BUILD_ERROR=%ERRORLEVEL%) & goto End |
62 |
||
63 |
cd %ROOT%/qbzr/%PLUGIN_TARGET% |
|
4392.3.25
by Sidnei da Silva
- Fixup a couple more targets |
64 |
%PYTHON% setup.py install -O1 --install-lib=%TARGET% |
4392.3.21
by Sidnei da Silva
- Make build-installer work for both trunk and latest of both bzr and plugins |
65 |
@if %ERRORLEVEL% NEQ 0 (set BUILD_ERROR=%ERRORLEVEL%) & goto End |
66 |
||
67 |
cd %ROOT%/bzr-svn/%PLUGIN_TARGET% |
|
4392.3.25
by Sidnei da Silva
- Fixup a couple more targets |
68 |
%PYTHON% setup.py install -O1 --install-lib=%TARGET% |
4392.3.21
by Sidnei da Silva
- Make build-installer work for both trunk and latest of both bzr and plugins |
69 |
@if %ERRORLEVEL% NEQ 0 (set BUILD_ERROR=%ERRORLEVEL%) & goto End |
70 |
||
71 |
cd %ROOT%/bzr-rebase/%PLUGIN_TARGET% |
|
4392.3.25
by Sidnei da Silva
- Fixup a couple more targets |
72 |
%PYTHON% setup.py install -O1 --install-lib=%TARGET% |
4392.3.21
by Sidnei da Silva
- Make build-installer work for both trunk and latest of both bzr and plugins |
73 |
@if %ERRORLEVEL% NEQ 0 (set BUILD_ERROR=%ERRORLEVEL%) & goto End |
74 |
||
75 |
set PYTHONPATH=%PYTHONPATH%;%TARGET% |
|
4392.3.17
by Sidnei da Silva
- Build tbzr with release bzrlib in path |
76 |
cd %ROOT%/tbzr/trunk |
77 |
%PYTHON% setup.py build |
|
78 |
@if %ERRORLEVEL% NEQ 0 (set BUILD_ERROR=%ERRORLEVEL%) & goto End |
|
79 |
||
4392.3.21
by Sidnei da Silva
- Make build-installer work for both trunk and latest of both bzr and plugins |
80 |
cd %TARGET% |
4392.3.14
by Sidnei da Silva
- Get rid of 'build' directory. Just call make installer |
81 |
make installer PYTHON=%CYG_PYTHON% |
4392.3.9
by Sidnei da Silva
- Getting really close now |
82 |
@if %ERRORLEVEL% NEQ 0 (set BUILD_ERROR=%ERRORLEVEL%) & goto End |
83 |
||
4392.3.19
by Sidnei da Silva
- Work around and build installers directly, copy all of them to the same directory |
84 |
rem Enable this when this branch is merged. |
85 |
rem make python-installer PYTHON24=${settings:python24} PYTHON25=${settings:python25} |
|
86 |
rem @if %ERRORLEVEL% NEQ 0 (set BUILD_ERROR=%ERRORLEVEL%) & goto End |
|
87 |
||
88 |
${settings:python24} setup.py bdist_wininst --install-script="bzr-win32-bdist-postinstall.py" -d . |
|
89 |
@if %ERRORLEVEL% NEQ 0 (set BUILD_ERROR=%ERRORLEVEL%) & goto End |
|
90 |
||
91 |
${settings:python25} setup.py bdist_wininst --install-script="bzr-win32-bdist-postinstall.py" -d . |
|
92 |
@if %ERRORLEVEL% NEQ 0 (set BUILD_ERROR=%ERRORLEVEL%) & goto End |
|
93 |
||
4392.3.21
by Sidnei da Silva
- Make build-installer work for both trunk and latest of both bzr and plugins |
94 |
%PYTHON% %ROOT%/ostools.py copytodir %TARGET%/bzr*.exe %INSTALLERS% |
4392.3.18
by Sidnei da Silva
- Make python-installer too |
95 |
@if %ERRORLEVEL% NEQ 0 (set BUILD_ERROR=%ERRORLEVEL%) & goto End |
96 |
||
4392.3.9
by Sidnei da Silva
- Getting really close now |
97 |
:End |
4392.3.17
by Sidnei da Silva
- Build tbzr with release bzrlib in path |
98 |
set PYTHONPATH=%ORIGINAL_PYTHONPATH% |
4392.3.9
by Sidnei da Silva
- Getting really close now |
99 |
cd %ORIGINAL_DIRECTORY% |
100 |
exit /b %BUILD_ERROR% |