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

     1  #!/bin/bash
     2  
     3  set -ex
     4  
     5  pushd gpbackup_tar
     6    # Create install script
     7    printf "#!/bin/sh\nset -x\ntar -xzvf bin_gpbackup.tar.gz -C \$GPHOME" > install_gpdb_component
     8    chmod +x install_gpdb_component
     9  
    10    tar -xzf ../gpbackup-go-components/go_components.tar.gz
    11    cp ../ddboost_components/*version .
    12    cp gpbackup_version version
    13    cp ../gpbackup-release-license/open_source_license_VMware_Greenplum_Backup_and_Restore*.txt open_source_licenses_VMware_Greenplum_Backup_and_Restore.txt
    14  
    15    mkdir -p bin lib
    16    cp gpbackup gpbackup_helper gprestore gpbackup_s3_plugin gpbackup_manager bin/
    17    cp ../ddboost_components/gpbackup_ddboost_plugin bin/
    18    cp ../ddboost_components/libDDBoost.so lib/
    19    tar -czvf bin_gpbackup.tar.gz bin/ lib/ open_source_licenses_VMware_Greenplum_Backup_and_Restore.txt
    20  
    21    tar -czvf gpbackup-$(cat version).tar.gz bin_gpbackup.tar.gz install_gpdb_component *version
    22  popd