2006-11-29 20:49:31 +01:00
|
|
|
@echo off
|
2007-07-07 09:43:21 +02:00
|
|
|
REM $PostgreSQL: pgsql/src/tools/msvc/clean.bat,v 1.6 2007/07/07 07:43:21 mha Exp $
|
2006-11-29 20:49:31 +01:00
|
|
|
|
|
|
|
set D=%CD%
|
|
|
|
if exist ..\msvc if exist ..\..\..\src cd ..\..\..
|
|
|
|
|
|
|
|
if exist debug rd /s /q debug
|
|
|
|
if exist release rd /s /q release
|
|
|
|
call :del *.vcproj
|
|
|
|
call :del pgsql.sln
|
|
|
|
del /s /q src\bin\win32ver.rc 2> NUL
|
|
|
|
del /s /q src\interfaces\win32ver.rc 2> NUL
|
|
|
|
call :del src\backend\win32ver.rc
|
|
|
|
|
|
|
|
|
|
|
|
REM Delete files created with GenerateFiles() in Solution.pm
|
|
|
|
call :del src\include\pg_config.h
|
|
|
|
call :del src\include\pg_config_os.h
|
2007-07-07 09:43:21 +02:00
|
|
|
call :del src\backend\parser\parse.h
|
2006-11-29 20:49:31 +01:00
|
|
|
call :del src\include\utils\fmgroids.h
|
|
|
|
|
|
|
|
call :del src\backend\utils\fmgrtab.c
|
|
|
|
call :del src\backend\catalog\postgres.bki
|
|
|
|
call :del src\backend\catalog\postgres.description
|
|
|
|
call :del src\backend\catalog\postgres.shdescription
|
|
|
|
call :del src\backend\parser\gram.c
|
|
|
|
call :del src\backend\bootstrap\bootparse.c
|
|
|
|
call :del src\backend\bootstrap\bootstrap_tokens.h
|
|
|
|
|
|
|
|
call :del src\bin\psql\sql_help.h
|
|
|
|
|
|
|
|
call :del src\interfaces\libpq\libpq.rc
|
|
|
|
call :del src\interfaces\libpq\libpqdll.def
|
|
|
|
call :del src\interfaces\ecpg\include\ecpg_config.h
|
|
|
|
call :del src\interfaces\ecpg\preproc\preproc.c
|
|
|
|
call :del src\interfaces\ecpg\preproc\preproc.h
|
|
|
|
|
|
|
|
call :del src\port\pg_config_paths.h
|
|
|
|
|
|
|
|
call :del src\pl\plperl\spi.c
|
|
|
|
call :del src\pl\plpgsql\src\pl_gram.c
|
|
|
|
call :del src\pl\plpgsql\src\pl.tab.h
|
|
|
|
|
|
|
|
call :del contrib\cube\cubeparse.c
|
|
|
|
call :del contrib\cube\cubeparse.h
|
|
|
|
call :del contrib\seg\segparse.c
|
|
|
|
call :del contrib\seg\segparse.h
|
|
|
|
|
2007-02-13 16:36:32 +01:00
|
|
|
if exist src\test\regress\tmp_check rd /s /q src\test\regress\tmp_check
|
|
|
|
call :del contrib\spi\refint.dll
|
|
|
|
call :del contrib\spi\autoinc.dll
|
|
|
|
call :del src\test\regress\regress.dll
|
2006-11-29 20:49:31 +01:00
|
|
|
|
2007-03-23 10:53:33 +01:00
|
|
|
REM Clean up datafiles built with contrib
|
|
|
|
cd contrib
|
|
|
|
for /r %%f in (*.sql) do if exist %%f.in del %%f
|
|
|
|
REM Clean up tsearch2 which uses inconsistent names
|
|
|
|
call :del tsearch2\tsearch2.sql
|
|
|
|
call :del tsearch2\uninstall_tsearch2.sql
|
|
|
|
|
2006-11-29 20:49:31 +01:00
|
|
|
cd %D%
|
2007-06-12 13:07:34 +02:00
|
|
|
|
|
|
|
REM Clean up ecpg regression test files
|
|
|
|
msbuild ecpg_regression.proj /t:clean /v:q
|
|
|
|
|
2006-11-29 20:49:31 +01:00
|
|
|
goto :eof
|
|
|
|
|
|
|
|
|
|
|
|
:del
|
|
|
|
if exist %1 del /q %1
|
2007-03-17 15:01:01 +01:00
|
|
|
goto :eof
|