gopkg.in/openshift/source-to-image.v1@v1.2.0/hack/extract-release.sh (about)

     1  #!/bin/bash
     2  
     3  # This script extracts a valid release tar into _output/releases. It requires hack/build-release.sh
     4  # to have been executed
     5  
     6  set -o errexit
     7  set -o nounset
     8  set -o pipefail
     9  
    10  S2I_ROOT=$(dirname "${BASH_SOURCE}")/..
    11  source "${S2I_ROOT}/hack/common.sh"
    12  
    13  # Go to the top of the tree.
    14  cd "${S2I_ROOT}"
    15  
    16  # Copy the linux release archives release back to the local _output/local/bin/linux/amd64 directory.
    17  # TODO: support different OS's?
    18  s2i::build::detect_local_release_tars "linux-amd64"
    19  
    20  mkdir -p "${S2I_OUTPUT_BINPATH}/linux/amd64"
    21  tar mxzf "${S2I_PRIMARY_RELEASE_TAR}" -C "${S2I_OUTPUT_BINPATH}/linux/amd64"
    22  
    23  s2i::build::make_binary_symlinks