]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/b.bat
Ehm... fixed my comment about DJGPP to say what I wanted it to say
[wxWidgets.git] / wxPython / b.bat
... / ...
CommitLineData
1@echo off
2REM ----------------------------------------------------------------------
3REM Note: This is a 4NT script
4REM ----------------------------------------------------------------------
5setlocal
6
7set FLAGS=USE_SWIG=1 IN_CVS_TREE=1
8
9
10rem Use non-default python?
11iff "%1" == "15" .or. "%1" == "20" .or. "%1" == "21" .or. "%1" == "22" then
12 set VER=%1
13 set PYTHON=c:\tools\python%1%\python.exe
14 shift
15else
16 beep
17 echo You must specify Python version as first parameter.
18 quit
19endiff
20set SETUP=%PYTHON% -u setup.py
21
22
23%PYTHON% -c "import sys;print '\n', sys.version, '\n'"
24
25
26rem "c" --> clean
27iff "%1" == "c" then
28 shift
29 set CMD=%SETUP% %FLAGS% clean
30 set OTHERCMD=del wxPython\*.pyd
31
32rem just remove the *.pyd's
33elseiff "%1" == "d" then
34 shift
35 set CMD=del wxPython\*.pyd
36
37rem touch all the *.i files so swig will regenerate
38elseiff "%1" == "t" then
39 shift
40 set CMD=echo Finished!
41 find . -name "*.i" | xargs -l touch
42
43rem "i" --> install
44elseiff "%1" == "i" then
45 shift
46 set CMD=%SETUP% build install
47
48rem "r" --> make installer
49elseiff "%1" == "r" then
50 shift
51 set CMD=%PYTHON% distrib\make_installer.py
52
53rem "s" --> source dist
54elseiff "%1" == "s" then
55 shift
56 set CMD=%SETUP sdist
57
58rem "f" --> FINAL
59elseiff "%1" == "f" then
60 shift
61 set CMD=%SETUP% %FLAGS% FINAL=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9
62
63rem "h" --> HYBRID
64elseiff "%1" == "h" then
65 shift
66 set CMD=%SETUP% %FLAGS% HYBRID=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9
67
68rem "a" --> make all installers
69elseiff "%1" == "a" then
70 shift
71 set CMD=echo Finished!
72
73 call b.bat 15 c
74 call b.bat 15 f
75 call b.bat 15 r
76 call b.bat 15 c
77 call b.bat 15 h
78 call b.bat 15 r
79
80 call b.bat 21 c
81 call b.bat 21 f
82 call b.bat 21 r
83 call b.bat 21 c
84 call b.bat 21 h
85 call b.bat 21 r
86
87 call b.bat 22 c
88 call b.bat 22 f
89 call b.bat 22 r
90 call b.bat 22 c
91 call b.bat 22 h
92 call b.bat 22 r
93
94
95rem "b" --> both debug and hybrid builds
96elseiff "%1" == "b" then
97 shift
98 set CMD=echo Finished!
99 call b.bat %VER% h
100 call b.bat %VER%
101
102rem (no command arg) --> normal build for development
103else
104 set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9
105endiff
106
107
108
109echo %CMD%
110%CMD%
111
112iff "%OTHERCMD%" != "" then
113 echo %OTHERCMD%
114 %OTHERCMD%
115endiff
116