Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
MSVC: Finish clean.bat tmp_check coverage.
authorNoah Misch <noah@leadboat.com>
Sun, 19 Aug 2018 08:12:22 +0000 (01:12 -0700)
committerNoah Misch <noah@leadboat.com>
Sun, 19 Aug 2018 08:12:22 +0000 (01:12 -0700)
Use wildcards, so one can add a TAP test suite without updating this
file.  Back-patch to v11, which omitted multiple new suites.

src/tools/msvc/clean.bat

index 65454421d70993339b2bbf970b6c537ea85c2f75..1d9cd40bdb1e1f9081a3aaabbe5e633e4fcbf848 100755 (executable)
@@ -121,16 +121,8 @@ if exist src\test\regress\autoinc.dll del /q src\test\regress\autoinc.dll
 if %DIST%==1 if exist src\test\isolation\specscanner.c del /q src\test\isolation\specscanner.c
 if %DIST%==1 if exist src\test\isolation\specparse.c del /q src\test\isolation\specparse.c
 
-if exist src\bin\initdb\tmp_check rd /s /q src\bin\initdb\tmp_check
-if exist src\bin\pg_basebackup\tmp_check rd /s /q src\bin\pg_basebackup\tmp_check
-if exist src\bin\pg_config\tmp_check rd /s /q src\bin\pg_config\tmp_check
-if exist src\bin\pg_controldata\tmp_check rd /s /q src\bin\pg_controldata\tmp_check
-if exist src\bin\pg_ctl\tmp_check rd /s /q src\bin\pg_ctl\tmp_check
-if exist src\bin\pg_rewind\tmp_check rd /s /q src\bin\pg_rewind\tmp_check
-if exist src\bin\pg_upgrade\tmp_check rd /s /q src\bin\pg_upgrade\tmp_check
-if exist src\bin\pgbench\tmp_check rd /s /q src\bin\pgbench\tmp_check
-if exist src\bin\scripts\tmp_check rd /s /q src\bin\scripts\tmp_check
-if exist src\test\recovery\tmp_check rd /s /q src\test\recovery\tmp_check
+for /d %%f in (contrib\* src\bin\* src\test\* src\test\modules\*
+  ) do if exist %%f\tmp_check rd /s /q %%f\tmp_check
 
 REM Clean up datafiles built with contrib
 REM cd contrib