[Python-checkins] CVS: python/dist/src/PCbuild rt.bat,1.4,1.5

Tim Peters tim_one@users.sourceforge.net
Mon, 22 Jan 2001 18:42:11 -0800


Update of /cvsroot/python/python/dist/src/PCbuild
In directory usw-pr-cvs1:/tmp/cvs-serv17150/python/dist/src/pcbuild

Modified Files:
	rt.bat 
Log Message:
Added -O option (to run python or python_d w/ -O),


Index: rt.bat
===================================================================
RCS file: /cvsroot/python/python/dist/src/PCbuild/rt.bat,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** rt.bat	2001/01/20 01:53:43	1.4
--- rt.bat	2001/01/23 02:42:09	1.5
***************
*** 3,19 ****
  @rem "rt -d" runs Debug build similarly, after shifting off -d.
  @rem Normally the tests are run twice, the first time after deleting
! @rem all the .py[co] files from Lib/ and Lib/test.  But
  @rem "rt -q" (for Quick) runs the tests just once, and without
  @rem bothering to delete .py[co] files.
  @set _exe=python
  @set _qmode=no
  @if "%1"=="-q" set _qmode=yes
! @if "%1"=="-q" shift
  @if "%1"=="-d" set _exe=python_d
! @if "%1"=="-d" shift
  @if "%_qmode%"=="yes" goto Qmode
- @if "%1"=="-q" set _qmode=yes
- @if "%1"=="-q" shift
- @if "%_qmode%"=="yes" goto Qmode
  @echo Deleting .pyc/.pyo files ...
  @del ..\Lib\*.pyc
--- 3,24 ----
  @rem "rt -d" runs Debug build similarly, after shifting off -d.
  @rem Normally the tests are run twice, the first time after deleting
! @rem all the .py[co] files from Lib/ and Lib/test/.  But
  @rem "rt -q" (for Quick) runs the tests just once, and without
  @rem bothering to delete .py[co] files.
+ @rem "rt -O" runs python or python_d with -O (depending on -d).
  @set _exe=python
  @set _qmode=no
+ @set _dashO=
+ @goto CheckOpts
+ :Again
+ @shift
+ :CheckOpts
+ @if "%1"=="-O" set _dashO=-O
+ @if "%1"=="-O" goto Again
  @if "%1"=="-q" set _qmode=yes
! @if "%1"=="-q" goto Again
  @if "%1"=="-d" set _exe=python_d
! @if "%1"=="-d" goto Again
  @if "%_qmode%"=="yes" goto Qmode
  @echo Deleting .pyc/.pyo files ...
  @del ..\Lib\*.pyc
***************
*** 21,29 ****
  @del ..\Lib\test\*.pyc
  @del ..\Lib\test\*.pyo
! %_exe% ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
  @echo About to run again without deleting .pyc/.pyo first:
  @pause
  :Qmode
! %_exe% ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
  @set _exe=
  @set _qmode=
--- 26,35 ----
  @del ..\Lib\test\*.pyc
  @del ..\Lib\test\*.pyo
! %_exe% %_dashO% ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
  @echo About to run again without deleting .pyc/.pyo first:
  @pause
  :Qmode
! %_exe% %_dashO% ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
  @set _exe=
  @set _qmode=
+ @set _dashO=