Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e997a31

Browse files
committed
Added pg_probackup building
1 parent 1b336b0 commit e997a31

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

build/helpers/postgres.cmd

+8
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ IF %ARCH% == X64 SET PERL5LIB=%PERL64_PATH%\lib;src\tools\msvc
9191

9292
%PERL_EXE% src\tools\msvc\build.pl || GOTO :ERROR
9393

94+
%PERL_EXE% contrib\pg_probackup\gen_probackup_project.pl || GOTO :ERROR
95+
96+
9497
rm -rf %BUILD_DIR%\distr_%ARCH%_%PGVER%\postgresql
9598
MKDIR %BUILD_DIR%\distr_%ARCH%_%PGVER%\postgresql
9699
CD /D %BUILD_DIR%\postgresql\*%PGVER%*\src\tools\msvc
@@ -115,6 +118,11 @@ rem now actually copy DLLs of dependencies into our bindir
115118

116119
SET DEPENDENCIES_BIN_DIR=%DEPENDENCIES_BIN_DIR:\=/%
117120

121+
SET PRO_BACKUP=%BUILD_DIR%\postgresql\*%PGVER%*\Release\pg_probackup\pg_probackup.exe
122+
SET PRO_BACKUP=%PRO_BACKUP:\=/%
123+
124+
cp -va %PRO_BACKUP% %BUILD_DIR%\distr_%ARCH%_%PGVER%\postgresql\bin || GOTO :ERROR
125+
118126
cp -va %DEPENDENCIES_BIN_DIR%/libintl/lib/*.dll %BUILD_DIR%\distr_%ARCH%_%PGVER%\postgresql\bin || GOTO :ERROR
119127
cp -va %DEPENDENCIES_BIN_DIR%/libintl/lib/*.lib %BUILD_DIR%\distr_%ARCH%_%PGVER%\postgresql\lib || GOTO :ERROR
120128
cp -va %DEPENDENCIES_BIN_DIR%/iconv/lib/*.dll %BUILD_DIR%\distr_%ARCH%_%PGVER%\postgresql\bin || GOTO :ERROR

nsis/server.files

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
./bin/postmaster.*
1515
./bin/pg_standby.*
1616
./bin/zic.*
17+
./bin/pg_probackup.*
1718
./doc/extension/*.example
1819
./doc/buildinfo.txt
1920
./lib/*.dll

0 commit comments

Comments
 (0)