Commit 156a846d authored by Andrew Dunstan's avatar Andrew Dunstan

Allow clean.bat to be run from anywhere

This was omitted from c3879a7b4c which modified the other msvc .bat
files.

Per request from Juan José Santamaría Flecha

Discussion: https://postgr.es/m/CAC+AXB0_fxYGbQoaYjCA8um7TTbOVP4L9aXnVmHwK8WzaT4gdA@mail.gmail.com

Backpatch to all live branches.
parent b9dd1622
...@@ -4,8 +4,9 @@ REM src/tools/msvc/clean.bat ...@@ -4,8 +4,9 @@ REM src/tools/msvc/clean.bat
set DIST=0 set DIST=0
if "%1"=="dist" set DIST=1 if "%1"=="dist" set DIST=1
set D=%CD% setlocal
if exist ..\msvc if exist ..\..\..\src cd ..\..\..
cd "%~dp0\..\..\.."
if exist debug rd /s /q debug if exist debug rd /s /q debug
if exist release rd /s /q release if exist release rd /s /q release
...@@ -133,7 +134,7 @@ REM Clean up datafiles built with contrib ...@@ -133,7 +134,7 @@ REM Clean up datafiles built with contrib
REM cd contrib REM cd contrib
REM for /r %%f in (*.sql) do if exist %%f.in del %%f REM for /r %%f in (*.sql) do if exist %%f.in del %%f
cd %D% cd "%~dp0"
REM Clean up ecpg regression test files REM Clean up ecpg regression test files
msbuild ecpg_regression.proj /NoLogo /v:q %MSBFLAGS% /t:clean msbuild ecpg_regression.proj /NoLogo /v:q %MSBFLAGS% /t:clean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment