]> git.saurik.com Git - wxWidgets.git/blob - wxPython/b.bat
corrected control update code
[wxWidgets.git] / wxPython / b.bat
1 @echo off
2 setlocal
3
4 set FLAGS=USE_SWIG=1 IN_CVS_TREE=1
5
6
7 rem Use non-default python?
8 iff "%1" == "15" .or. "%1" == "20" .or. "%1" == "21" then
9 set PYTHON=c:\tools\python%1%\python.exe
10 shift
11 else
12 set PYTHON=python
13 endiff
14 set SETUP=%PYTHON% -u setup.py
15
16
17 %PYTHON% -c "import sys;print '\n', sys.version, '\n'"
18
19
20 rem "c" --> clean
21 iff "%1" == "c" then
22 shift
23 set CMD=%SETUP% %FLAGS% clean
24 set OTHERCMD=del wxPython\*.pyd
25
26 rem just remove the *.pyd's
27 elseiff "%1" == "d" then
28 shift
29 set CMD=del wxPython\*.pyd
30
31 rem "i" --> install
32 elseiff "%1" == "i" then
33 shift
34 set CMD=%SETUP% build install
35
36 rem "r" --> make installer
37 elseiff "%1" == "r" then
38 shift
39 set CMD=%PYTHON% distrib\make_installer.py
40
41 rem "s" --> source dist
42 elseiff "%1" == "s" then
43 shift
44 set CMD=%SETUP sdist
45
46 rem "f" --> FINAL
47 elseiff "%1" == "f" then
48 shift
49 set CMD=%SETUP% %FLAGS% FINAL=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9
50
51 rem "h" --> HYBRID
52 elseiff "%1" == "h" then
53 shift
54 set CMD=%SETUP% %FLAGS% HYBRID=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9
55
56 rem (no command arg) --> normal build for development
57 else
58 set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9
59 endiff
60
61
62
63 echo %CMD%
64 %CMD%
65
66 iff "%OTHERCMD%" != "" then
67 echo %OTHERCMD%
68 %OTHERCMD%
69 endiff
70