We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab4fd4f commit f80900bCopy full SHA for f80900b
src/tools/msvc/clean.bat
@@ -4,8 +4,9 @@ REM src/tools/msvc/clean.bat
4
set DIST=0
5
if "%1"=="dist" set DIST=1
6
7
-set D=%CD%
8
-if exist ..\msvc if exist ..\..\..\src cd ..\..\..
+setlocal
+
9
+cd "%~dp0\..\..\.."
10
11
if exist debug rd /s /q debug
12
if exist release rd /s /q release
@@ -133,7 +134,7 @@ REM Clean up datafiles built with contrib
133
134
REM cd contrib
135
REM for /r %%f in (*.sql) do if exist %%f.in del %%f
136
-cd %D%
137
+cd "%~dp0"
138
139
REM Clean up ecpg regression test files
140
msbuild ecpg_regression.proj /NoLogo /v:q %MSBFLAGS% /t:clean
0 commit comments