File tree Expand file tree Collapse file tree 2 files changed +9
-18
lines changed Expand file tree Collapse file tree 2 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -196,23 +196,11 @@ SET WGET=wget -N --no-check-certificate
196
196
197
197
rem download help sources
198
198
CD /D %DOWNLOADS_DIR%
199
- SET DOCURL = http://repo.l.postgrespro.ru/doc
200
- if " %BUILD_TYPE% " == " dev" SET DOCURL = http://repo.l.postgrespro.ru/doc/dev
201
-
202
- if " %PRODUCT_NAME% " == " PostgresPro" %WGET% -O help-sources-en.zip %DOCURL% /pgpro/%PG_MAJOR_VERSION% /en/help-sources.zip || GOTO :ERROR
203
- if " %PRODUCT_NAME% " == " PostgresPro" %WGET% -O help-sources-ru.zip %DOCURL% /pgpro/%PG_MAJOR_VERSION% /ru/help-sources.zip || GOTO :ERROR
204
- if " %PRODUCT_NAME% " == " PostgresProEnterprise" %WGET% -O help-sources-en.zip %DOCURL% /pgproee/%PG_MAJOR_VERSION% /en/help-sources.zip || GOTO :ERROR
205
- if " %PRODUCT_NAME% " == " PostgresProEnterprise" %WGET% -O help-sources-ru.zip %DOCURL% /pgproee/%PG_MAJOR_VERSION% /ru/help-sources.zip || GOTO :ERROR
206
-
207
-
208
- SET HAVE_PGSQL_DOC = 0
209
- if " %PG_MAJOR_VERSION% " == " 9.5" SET HAVE_PGSQL_DOC = 1
210
- if " %PG_MAJOR_VERSION% " == " 9.6" SET HAVE_PGSQL_DOC = 1
211
- if " %PG_MAJOR_VERSION% " == " 10" SET HAVE_PGSQL_DOC = 1
212
- if %HAVE_PGSQL_DOC% == 1 (
213
- if " %PRODUCT_NAME% " == " PostgreSQL" %WGET% -O help-sources-en.zip %DOCURL% /pgsql/%PG_MAJOR_VERSION% /en/help-sources.zip || GOTO :ERROR
214
- if " %PRODUCT_NAME% " == " PostgreSQL" %WGET% -O help-sources-ru.zip %DOCURL% /pgsql/%PG_MAJOR_VERSION% /ru/help-sources.zip || GOTO :ERROR
215
- )
199
+ SET DOCURL = http://localrepo.l.postgrespro.ru/%BUILD_TYPE% /doc
200
+ rem cut tar.bz2 extension from PGURL
201
+ SET HELPURL = %PGURL:0,-7 %
202
+ %WGET% -O help-sources-en.zip %prefix% .help.en.zip || GOTO :ERROR
203
+ %WGET% -O help-sources-ru.zip %prefix% .help.ru.zip || GOTO :ERROR
216
204
217
205
rem building help files
218
206
CD /D %BUILD_DIR% \postgresql
Original file line number Diff line number Diff line change @@ -74,11 +74,14 @@ ECHO %PG_PATCH_VERSION% | grep "^[0-9]." > nul && (
74
74
SET PG_DEF_VERSION = %PG_MAJOR_VERSION%%PG_PATCH_VERSION%
75
75
)
76
76
77
+ if " %BUILD_TYPE% " == " " SET BUILD_TYPE = dev
77
78
SET PGVER = %PG_DEF_VERSION%
78
79
IF " %PGURL% " == " " (
79
80
IF " %PRODUCT_NAME% " == " " SET PGURL = " https://ftp.postgresql.org/pub/source/v%PGVER% /postgresql-%PGVER% .tar.bz2"
80
81
IF " %PRODUCT_NAME% " == " PostgreSQL" SET PGURL = " https://ftp.postgresql.org/pub/source/v%PGVER% /postgresql-%PGVER% .tar.bz2"
81
- IF " %PRODUCT_NAME% " == " PostgresPro" SET PGURL = " http://repo.l.postgrespro.ru/pgpro-%PG_MAJOR_VERSION% -beta/src/postgrespro-standard-%PGVER% .tar.bz2"
82
+ IF " %PRODUCT_NAME% " == " PostgresPro" SET
83
+ PGURL=" http://localrepo.l.postgrespro.ru/%BUILD_TYPE% /src/postgrespro-standard-%PGVER% .tar.bz2"
84
+ IF " %PRODUCT_NAME% " == " PostgresProEnterprise" SET PGURL = " http://localrepo.l.postgrespro.ru/%BUILD_TYPE% /src/postgrespro-enterprise-%PGVER% .tar.bz2"
82
85
)
83
86
84
87
REM Set useful directories paths so they're used in scripts
You can’t perform that action at this time.
0 commit comments