mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00

The clean script is a "best effort" thing anyway, and this will hopefully revive the XP buildbot.
25 lines
592 B
Batchfile
25 lines
592 B
Batchfile
@echo off
|
|
rem Used by the buildbot "clean" step.
|
|
|
|
setlocal
|
|
set root=%~dp0..\..
|
|
set pcbuild=%root%\PCbuild
|
|
|
|
echo.Attempting to kill Pythons...
|
|
for %%k in (kill_python.exe
|
|
kill_python_d.exe
|
|
amd64\kill_python.exe
|
|
amd64\kill_python_d.exe
|
|
) do (
|
|
if exist "%pcbuild%\%%k" (
|
|
echo.Calling %pcbuild%\%%k...
|
|
"%pcbuild%\%%k"
|
|
)
|
|
)
|
|
|
|
echo Purging all non-tracked files with `hg purge`
|
|
echo on
|
|
hg -R "%root%" --config extensions.purge= purge --all -X "%root%\Lib\test\data"
|
|
|
|
@rem Clean is best effort, so we "always succeed"
|
|
@exit /b 0
|