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

Skip to content

Commit 8f95464

Browse files
vbwagnerVictorSpirin
authored andcommitted
Use new path for downloadble sources and help sources
1 parent ffdb009 commit 8f95464

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

build/helpers/postgres.cmd

+5-17
Original file line numberDiff line numberDiff line change
@@ -200,23 +200,11 @@ SET WGET=wget -N --no-check-certificate
200200

201201
rem download help sources
202202
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
220208

221209
rem building help files
222210
CD /D %BUILD_DIR%\postgresql

build/helpers/setvars.cmd

+4-1
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,14 @@ ECHO %PG_PATCH_VERSION% | grep "^[0-9]." > nul && (
8181
SET PG_DEF_VERSION=%PG_MAJOR_VERSION%%PG_PATCH_VERSION%
8282
)
8383

84+
if "%BUILD_TYPE%"=="" SET BUILD_TYPE=dev
8485
SET PGVER=%PG_DEF_VERSION%
8586
IF "%PGURL%"=="" (
8687
IF "%PRODUCT_NAME%"=="" SET PGURL="https://ftp.postgresql.org/pub/source/v%PGVER%/postgresql-%PGVER%.tar.bz2"
8788
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"
8992
)
9093

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

0 commit comments

Comments
 (0)