Skip to content

Commit 7b9575d

Browse files
committed
Use new path for downloadble sources and help sources
1 parent d4dbfc5 commit 7b9575d

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

build/helpers/postgres.cmd

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -196,23 +196,11 @@ SET WGET=wget -N --no-check-certificate
196196

197197
rem download help sources
198198
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
216204

217205
rem building help files
218206
CD /D %BUILD_DIR%\postgresql

build/helpers/setvars.cmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,14 @@ ECHO %PG_PATCH_VERSION% | grep "^[0-9]." > nul && (
7474
SET PG_DEF_VERSION=%PG_MAJOR_VERSION%%PG_PATCH_VERSION%
7575
)
7676

77+
if "%BUILD_TYPE%"=="" SET BUILD_TYPE=dev
7778
SET PGVER=%PG_DEF_VERSION%
7879
IF "%PGURL%"=="" (
7980
IF "%PRODUCT_NAME%"=="" SET PGURL="https://ftp.postgresql.org/pub/source/v%PGVER%/postgresql-%PGVER%.tar.bz2"
8081
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"
8285
)
8386

8487
REM Set useful directories paths so they're used in scripts

0 commit comments

Comments
 (0)