File tree 4 files changed +31
-12
lines changed
4 files changed +31
-12
lines changed Original file line number Diff line number Diff line change
1
+ SET ARCH = X64
2
+ SET SDK = MSVC2013
3
+ SET PG_MAJOR_VERSION = 12
4
+ SET PG_PATCH_VERSION = 2.1
5
+ SET PRODUCT_NAME = PostgresProEnterprise
6
+ rem SET PRODUCT_NAME=PostgreSQL 1C
7
+ rem SET ONE_C=YES
8
+ rem SET PGURL=http://repo.postgrespro.ru/1c-10-beta/src/postgrespro-1c-10.3.tar.bz2
9
+ rem SET GIT_PATH=https://git.postgrespro.ru/pgpro-dev/postgrespro.git
10
+ rem GIT_BRANCH=PGPROEE12_DEV
11
+ SET PERL5LIB = .
12
+ SET MSBFLAGS = /m
13
+ SET WITHTAPTESTS = 1
14
+ SET NOLOAD_SRC =
15
+ rem SET ISDEV=0
16
+ rem SET BUILD_TYPE=dev
17
+ call run.cmd %1
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ if "%PRODUCT_NAME%" == "PostgresPro" goto :SKIP_ZSTD
27
27
28
28
29
29
:ZSTD
30
- ECHO ON
31
30
TITLE " Building libzstd"
32
31
IF " ZSTD_RELEASE" == " " set ZSTD_RELEASE = 1.1.0
33
32
CD /D %DOWNLOADS_DIR%
@@ -131,7 +130,7 @@ MKDIR %DEPENDENCIES_BIN_DIR%\iconv
131
130
tar xf libiconv-%ICONV_VER% .tar.gz -C %DEPENDENCIES_SRC_UDIR% || GOTO :ERROR
132
131
CD /D %DEPENDENCIES_SRC_DIR% \libiconv-%ICONV_VER% *
133
132
cp -v %ROOT% /patches/libiconv/libiconv-%ICONV_VER% -%SDK% .patch libiconv.patch
134
- echo on
133
+
135
134
patch -f -p0 < libiconv.patch || GOTO :ERROR
136
135
137
136
msbuild libiconv.vcxproj /m /p:Configuration=Release /p:Platform=%Platform% /p:PlatformToolset=%PlatformToolset% || GOTO :ERROR
Original file line number Diff line number Diff line change @@ -200,11 +200,11 @@ SET WGET=wget -N --no-check-certificate
200
200
201
201
rem download help sources
202
202
CD /D %DOWNLOADS_DIR%
203
- SET DOCURL = http://localrepo.l.postgrespro.ru/%BUILD_TYPE% /doc
203
+ rem SET DOCURL=http://localrepo.l.postgrespro.ru/%BUILD_TYPE%/doc
204
204
rem cut tar.bz2 extension from PGURL
205
- SET HELPURL = %PGURL:0,-7 %
206
- %WGET% -O help-sources-en.zip %prefix % .help.en.zip || GOTO :ERROR
207
- %WGET% -O help-sources-ru.zip %prefix % .help.ru.zip || GOTO :ERROR
205
+ SET HELPURL = %PGURL:~ 0 ,-8 %
206
+ %WGET% -O help-sources-en.zip %HELPURL % .help.en.zip || GOTO :ERROR
207
+ %WGET% -O help-sources-ru.zip %HELPURL % .help.ru.zip || GOTO :ERROR
208
208
209
209
rem building help files
210
210
CD /D %BUILD_DIR% \postgresql
Original file line number Diff line number Diff line change @@ -81,16 +81,19 @@ ECHO %PG_PATCH_VERSION% | grep "^[0-9]." > nul && (
81
81
SET PG_DEF_VERSION = %PG_MAJOR_VERSION%%PG_PATCH_VERSION%
82
82
)
83
83
84
+ IF " %ISDEV% " == " 1" SET BUILD_TYPE = dev
85
+ IF " %ISDEV% " == " 0" SET BUILD_TYPE = stable
86
+
84
87
if " %BUILD_TYPE% " == " " SET BUILD_TYPE = dev
88
+
85
89
SET PGVER = %PG_DEF_VERSION%
90
+
86
91
IF " %PGURL% " == " " (
87
- IF " %PRODUCT_NAME% " == " " SET PGURL = " https://ftp.postgresql.org/pub/source/v%PGVER% /postgresql-%PGVER% .tar.bz2"
88
- IF " %PRODUCT_NAME% " == " PostgreSQL" SET PGURL = " https://ftp.postgresql.org/pub/source/v%PGVER% /postgresql-%PGVER% .tar.bz2"
89
- IF " %PRODUCT_NAME% " == " PostgresPro" SET
90
- PGURL=" http://localrepo.l.postgrespro.ru/%BUILD_TYPE% /src/postgrespro-standard-%PGVER% .tar.bz2"
91
- IF " %PRODUCT_NAME% " == " PostgresProEnterprise" SET PGURL = " http://localrepo.l.postgrespro.ru/%BUILD_TYPE% /src/postgrespro-enterprise-%PGVER% .tar.bz2"
92
+ IF " %PRODUCT_NAME% " == " " SET PGURL = https://ftp.postgresql.org/pub/source/v%PGVER% /postgresql-%PGVER% .tar.bz2
93
+ IF " %PRODUCT_NAME% " == " PostgreSQL" SET PGURL = https://ftp.postgresql.org/pub/source/v%PGVER% /postgresql-%PGVER% .tar.bz2
94
+ IF " %PRODUCT_NAME% " == " PostgresPro" SET PGURL = http://localrepo.l.postgrespro.ru/%BUILD_TYPE% /src/postgrespro-standard-%PGVER% .tar.bz2
95
+ IF " %PRODUCT_NAME% " == " PostgresProEnterprise" SET PGURL = http://localrepo.l.postgrespro.ru/%BUILD_TYPE% /src/postgrespro-enterprise-%PGVER% .tar.bz2
92
96
)
93
-
94
97
REM Set useful directories paths so they're used in scripts
95
98
SET BUILD_DIR = %ROOT% \builddir
96
99
SET DEPENDENCIES_SRC_DIR = %BUILD_DIR% \dependencies_src
You can’t perform that action at this time.
0 commit comments