~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/win32/buildout-templates/bin/build-installer.bat.in

  • Committer: Sidnei da Silva
  • Date: 2009-07-04 02:16:06 UTC
  • mto: (4531.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4532.
  • Revision ID: sidnei.da.silva@canonical.com-20090704021606-os06th007b2bfu5u
- Define targets as 'release' and 'dev', allow passing them through make

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
set ROOT=${buildout:directory}
5
5
 
6
 
set RELEASE=%ROOT%\release\bzr.${settings:bzr-latest}
 
6
set RELEASE=%ROOT%\release\bzr.${settings:bzr-release}
7
7
set DEV=%ROOT%\dev\bzr.dev
8
8
set TARGET=
9
9
set BZR_TARGET=
32
32
FOR /f "tokens=1 delims= " %%G IN ('cygpath %PYTHON%') DO set CYG_PYTHON=%%G
33
33
 
34
34
:ARGS
35
 
if "%1"=="release" (set TARGET=%RELEASE%) & (set BZR_TARGET=latest) & shift & goto ARGS
 
35
if "%1"=="release" (set TARGET=%RELEASE%) & (set BZR_TARGET=release) & shift & goto ARGS
36
36
if "%1"=="dev" (set TARGET=%DEV%) & (set BZR_TARGET=trunk) & shift & goto ARGS
37
 
if "%1"=="plugin-latest" (set PLUGIN_TARGET=latest) & shift & goto ARGS
 
37
if "%1"=="plugin-release" (set PLUGIN_TARGET=release) & shift & goto ARGS
38
38
if "%1"=="plugin-dev" (set PLUGIN_TARGET=trunk) & shift & goto ARGS
39
39
 
40
 
if not defined TARGET (set TARGET=%RELEASE%) & (set BZR_TARGET=latest)
41
 
if not defined PLUGIN_TARGET (set PLUGIN_TARGET=latest)
 
40
if not defined TARGET (set TARGET=%RELEASE%) & (set BZR_TARGET=release)
 
41
if not defined PLUGIN_TARGET (set PLUGIN_TARGET=release)
42
42
 
43
43
%PYTHON% %ROOT%/ostools.py remove %TARGET%
44
44
@if %ERRORLEVEL% NEQ 0 (set BUILD_ERROR=%ERRORLEVEL%) & goto End