2 REM ---------------------------------------------------------------------- 
   3 REM Note:  This is a 4NT script 
   4 REM ---------------------------------------------------------------------- 
   8 set FLAGS
=USE_SWIG
=1 SWIG
=e
:/projects
/SWIG
-cvs
/swig.exe
 
  10 rem  Use non-default python? 
  11 iff 
"%1" == "15" .or. 
"%1" == "20" .or. 
"%1" == "21" .or. 
"%1" == "22" .or. 
"%1" == "23" then 
  13         set PYTHON
=%TOOLS%\python
%1%\python.exe
 
  17         echo You must specify Python version as first parameter.
 
  20 set SETUP
=%PYTHON% -u setup.py
 
  23 %PYTHON% -c 
"import sys;print '\n', sys.version, '\n'" 
  29         set CMD=%SETUP% %FLAGS% clean 
%1 %2 %3 %4 %5 %6 %7 %8 %9 
  30         set OTHERCMD
=del wx\
*.pyd
 
  32 rem just remove the *.pyd's 
  33 elseiff 
"%1" == "d" then 
  37 rem touch all the *.i files so swig will regenerate 
  38 elseiff 
"%1" == "t" then 
  40         set CMD=echo Finished
! 
  41         find . 
-name 
"*.i" | xargs 
-l touch
 
  44 elseiff 
"%1" == "i" then 
  46         set CMD=%SETUP% build install
 
  48 rem "r" --> make installer 
  49 elseiff 
"%1" == "r" then 
  51         set CMD=%PYTHON% -u distrib\make_installer.py 
%1 %2 %3 %4 %5 %6 %7 %8 %9 
  53 rem "s" --> source dist 
  54 elseiff 
"%1" == "s" then 
  59 elseiff 
"%1" == "f" then 
  61         set CMD=%SETUP% %FLAGS% FINAL
=1 build_ext 
--inplace 
%1 %2 %3 %4 %5 %6 %7 %8 %9 
  64 elseiff 
"%1" == "h" then 
  66         set CMD=%SETUP% %FLAGS% HYBRID
=1 build_ext 
--inplace 
%1 %2 %3 %4 %5 %6 %7 %8 %9 
  68 rem "a" --> make all installers 
  69 elseiff 
"%1" == "a" then 
  71         set CMD=echo Finished
! 
  76         call b.bat 
22 d UNICODE
=1 
  77         call b.bat 
22 h UNICODE
=1 
  78         call b.bat 
22 r UNICODE
=1 
  83         call b.bat 
23 d UNICODE
=1 
  84         call b.bat 
23 h UNICODE
=1 
  85         call b.bat 
23 r UNICODE
=1 
  88 rem "b" --> both debug and hybrid builds 
  89 elseiff 
"%1" == "b" then 
  91         set CMD=echo Finished
! 
  92         call b.bat 
%VER%   %1 %2 %3 %4 %5 %6 %7 %8 %9 
  93         call b.bat 
%VER% h 
%1 %2 %3 %4 %5 %6 %7 %8 %9 
  95 rem (no command arg) --> normal build for development 
  97         set CMD=%SETUP% %FLAGS% HYBRID
=0 build_ext 
--inplace 
--debug %1 %2 %3 %4 %5 %6 %7 %8 %9 
 105 iff 
"%OTHERCMD%" != "" then