github.com/greenplum-db/gpbackup@v0.0.0-20240517212602-89daab1885b3/ci/scripts/prepare_release.bash (about) 1 #!/bin/bash 2 3 set -ex 4 5 # untar components, and then nested tarball of binaries 6 tar xvzf release_components_rhel7/*.gz -C components_untarred_rhel7 7 tar xvzf release_components_rhel8/*.gz -C components_untarred_rhel8 8 tar xvzf release_components_rhel9/*.gz -C components_untarred_rhel9 9 tar xvzf release_components_ubuntu/*.gz -C components_untarred_ubuntu 10 11 tar xvzf components_untarred_rhel7/bin_gpbackup.tar.gz -C components_untarred_rhel7 12 tar xvzf components_untarred_rhel8/bin_gpbackup.tar.gz -C components_untarred_rhel8 13 tar xvzf components_untarred_rhel9/bin_gpbackup.tar.gz -C components_untarred_rhel9 14 tar xvzf components_untarred_ubuntu/bin_gpbackup.tar.gz -C components_untarred_ubuntu 15 16 # make directories for unpacking and for final delivery 17 mkdir components_untarred_rhel7/components 18 mkdir components_untarred_rhel8/components 19 mkdir components_untarred_rhel9/components 20 mkdir components_untarred_ubuntu/components 21 22 mkdir components_untarred_rhel7/output 23 mkdir components_untarred_rhel8/output 24 mkdir components_untarred_rhel9/output 25 mkdir components_untarred_ubuntu/output 26 27 ## Move binaries to final destination and tar up for publishing 28 # RHEL7 29 cp components_untarred_rhel7/bin/gpbackup components_untarred_rhel7/components 30 cp components_untarred_rhel7/bin/gprestore components_untarred_rhel7/components 31 cp components_untarred_rhel7/bin/gpbackup_helper components_untarred_rhel7/components 32 tar -czvf components_untarred_rhel7/output/gpbackup_binaries_rhel7.tar.gz -C components_untarred_rhel7/components . 33 34 # RHEL8 35 cp components_untarred_rhel8/bin/gpbackup components_untarred_rhel8/components 36 cp components_untarred_rhel8/bin/gprestore components_untarred_rhel8/components 37 cp components_untarred_rhel8/bin/gpbackup_helper components_untarred_rhel8/components 38 tar -czvf components_untarred_rhel8/output/gpbackup_binaries_rhel8.tar.gz -C components_untarred_rhel8/components . 39 40 # RHEL9 41 cp components_untarred_rhel9/bin/gpbackup components_untarred_rhel9/components 42 cp components_untarred_rhel9/bin/gprestore components_untarred_rhel9/components 43 cp components_untarred_rhel9/bin/gpbackup_helper components_untarred_rhel9/components 44 tar -czvf components_untarred_rhel9/output/gpbackup_binaries_rhel9.tar.gz -C components_untarred_rhel9/components . 45 46 # UBUNTU 47 cp components_untarred_ubuntu/bin/gpbackup components_untarred_ubuntu/components 48 cp components_untarred_ubuntu/bin/gprestore components_untarred_ubuntu/components 49 cp components_untarred_ubuntu/bin/gpbackup_helper components_untarred_ubuntu/components 50 tar -czvf components_untarred_ubuntu/output/gpbackup_binaries_ubuntu.tar.gz -C components_untarred_ubuntu/components .