File tree 2 files changed +9
-18
lines changed
2 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -200,23 +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://repo.l.postgrespro.ru/doc
204
- if " %BUILD_TYPE% " == " dev" SET DOCURL = http://repo.l.postgrespro.ru/doc/dev
205
-
206
- if " %PRODUCT_NAME% " == " PostgresPro" %WGET% -O help-sources-en.zip %DOCURL% /pgpro/%PG_MAJOR_VERSION% /en/help-sources.zip || GOTO :ERROR
207
- if " %PRODUCT_NAME% " == " PostgresPro" %WGET% -O help-sources-ru.zip %DOCURL% /pgpro/%PG_MAJOR_VERSION% /ru/help-sources.zip || GOTO :ERROR
208
- if " %PRODUCT_NAME% " == " PostgresProEnterprise" %WGET% -O help-sources-en.zip %DOCURL% /pgproee/%PG_MAJOR_VERSION% /en/help-sources.zip || GOTO :ERROR
209
- if " %PRODUCT_NAME% " == " PostgresProEnterprise" %WGET% -O help-sources-ru.zip %DOCURL% /pgproee/%PG_MAJOR_VERSION% /ru/help-sources.zip || GOTO :ERROR
210
-
211
-
212
- SET HAVE_PGSQL_DOC = 0
213
- if " %PG_MAJOR_VERSION% " == " 9.5" SET HAVE_PGSQL_DOC = 1
214
- if " %PG_MAJOR_VERSION% " == " 9.6" SET HAVE_PGSQL_DOC = 1
215
- if " %PG_MAJOR_VERSION% " == " 10" SET HAVE_PGSQL_DOC = 1
216
- if %HAVE_PGSQL_DOC% == 1 (
217
- if " %PRODUCT_NAME% " == " PostgreSQL" %WGET% -O help-sources-en.zip %DOCURL% /pgsql/%PG_MAJOR_VERSION% /en/help-sources.zip || GOTO :ERROR
218
- if " %PRODUCT_NAME% " == " PostgreSQL" %WGET% -O help-sources-ru.zip %DOCURL% /pgsql/%PG_MAJOR_VERSION% /ru/help-sources.zip || GOTO :ERROR
219
- )
203
+ SET DOCURL = http://localrepo.l.postgrespro.ru/%BUILD_TYPE% /doc
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
220
208
221
209
rem building help files
222
210
CD /D %BUILD_DIR% \postgresql
Original file line number Diff line number Diff line change @@ -81,11 +81,14 @@ 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 " %BUILD_TYPE% " == " " SET BUILD_TYPE = dev
84
85
SET PGVER = %PG_DEF_VERSION%
85
86
IF " %PGURL% " == " " (
86
87
IF " %PRODUCT_NAME% " == " " SET PGURL = " https://ftp.postgresql.org/pub/source/v%PGVER% /postgresql-%PGVER% .tar.bz2"
87
88
IF " %PRODUCT_NAME% " == " PostgreSQL" SET PGURL = " https://ftp.postgresql.org/pub/source/v%PGVER% /postgresql-%PGVER% .tar.bz2"
88
- IF " %PRODUCT_NAME% " == " PostgresPro" SET PGURL = " http://repo.l.postgrespro.ru/pgpro-%PG_MAJOR_VERSION% -beta/src/postgrespro-standard-%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"
89
92
)
90
93
91
94
REM Set useful directories paths so they're used in scripts
You can’t perform that action at this time.
0 commit comments