summaryrefslogtreecommitdiff
path: root/src/tools/msvc/clean.bat
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2013-02-25 12:00:53 -0500
committerAndrew Dunstan <andrew@dunslane.net>2013-02-25 12:00:53 -0500
commita64e33f030f3ba379a0d3e22fe6bcda9dc3bbc60 (patch)
tree46fa905607c27d10bab5526f6fdcd4ea21128ae6 /src/tools/msvc/clean.bat
parentaa05c37e823a41056273e73f6b3d168009a67c3f (diff)
downloadpostgresql-a64e33f030f3ba379a0d3e22fe6bcda9dc3bbc60.tar.gz
Redo MSVC build implementation for pg_xlogdump.
The previous commit didn't work on MSVC editions earlier than Visual Studio 2011, apparently. This works by copying files into the contrib directory, and making provision to clean them up, which should work on all editions.
Diffstat (limited to 'src/tools/msvc/clean.bat')
-rwxr-xr-xsrc/tools/msvc/clean.bat5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/msvc/clean.bat b/src/tools/msvc/clean.bat
index a2622ba2e4..e06838cc1e 100755
--- a/src/tools/msvc/clean.bat
+++ b/src/tools/msvc/clean.bat
@@ -78,6 +78,11 @@ REM Clean up datafiles built with contrib
REM cd contrib
REM for /r %%f in (*.sql) do if exist %%f.in del %%f
+REM clean up files copied into contrib\pg_xlogdump
+if exist contrib\pg_xlogdump\xlogreader.c del /q contrib\pg_xlogdump\xlogreader.c
+for %%f in (contrib\pg_xlogdump\*desc.c) do if not %%f==contrib\pg_xlogdump\rmgrdesc.c del /q %%f
+
+
cd %D%
REM Clean up ecpg regression test files