github.com/greenplum-db/gpbackup@v0.0.0-20240517212602-89daab1885b3/ci/scripts/build-ddboost.bash (about)

     1  #!/bin/bash
     2  
     3  set -ex
     4  
     5  # Install gpdb binaries (required because ddboost has a dependency on libpq-fe.h)
     6  mkdir -p /usr/local/greenplum-db-devel
     7  tar -xzf bin_gpdb/*.tar.gz -C /usr/local/greenplum-db-devel
     8  source /usr/local/greenplum-db-devel/greenplum_path.sh
     9  
    10  # build ddboost plugin
    11  pushd gpbackup_ddboost_plugin
    12      source /opt/gcc_env.sh || true
    13      make build
    14      ddboost_plugin_version=$(git describe --tags | perl -pe 's/(.*)-([0-9]*)-(g[0-9a-f]*)/\1+dev.\2.\3/')
    15  popd
    16  
    17  echo ${ddboost_plugin_version} > ddboost_components/ddboost_plugin_version
    18  cp gpbackup_ddboost_plugin/gpbackup_ddboost_plugin ddboost_components/
    19  cp gpbackup_ddboost_plugin/DDBoostSDK/lib/release/linux/64/libDDBoost.so ddboost_components/