11#! /usr/bin/env bash
22
33#
4- # Copyright (c) 2019-2020 , Postgres Professional
4+ # Copyright (c) 2019-2022 , Postgres Professional
55#
66set -xe
77
@@ -33,18 +33,18 @@ echo "############### Getting Postgres sources:"
3333git clone https://github.com/postgres/postgres.git -b $PG_BRANCH --depth=1
3434
3535# Clone ptrack
36- if [ " $PTRACK_PATCH_PG_BRANCH " != " off " ]; then
36+ if [ " $PTRACK_PATCH_PG_BRANCH " != " OFF " ]; then
3737 git clone https://github.com/postgrespro/ptrack.git -b master --depth=1
38- export PG_PROBACKUP_PTRACK=on
38+ export PG_PROBACKUP_PTRACK=ON
3939else
40- export PG_PROBACKUP_PTRACK=off
40+ export PG_PROBACKUP_PTRACK=OFF
4141fi
4242
4343
4444# Compile and install Postgres
4545echo " ############### Compiling Postgres:"
4646cd postgres # Go to postgres dir
47- if [ " $PG_PROBACKUP_PTRACK " = " on " ]; then
47+ if [ " $PG_PROBACKUP_PTRACK " = " ON " ]; then
4848 git apply -3 ../ptrack/patches/${PTRACK_PATCH_PG_BRANCH} -ptrack-core.diff
4949fi
5050CFLAGS=" -O0" ./configure --prefix=$PGHOME --enable-debug --enable-cassert --enable-depend --enable-tap-tests
@@ -59,7 +59,7 @@ export PATH=$PGHOME/bin:$PATH
5959export LD_LIBRARY_PATH=$PGHOME /lib
6060export PG_CONFIG=$( which pg_config)
6161
62- if [ " $PG_PROBACKUP_PTRACK " = " on " ]; then
62+ if [ " $PG_PROBACKUP_PTRACK " = " ON " ]; then
6363 echo " ############### Compiling Ptrack:"
6464 make USE_PGXS=1 -C ../ptrack install
6565fi
0 commit comments