get.porter.sh/porter@v1.3.0/scripts/prep-install-scripts.sh (about)

     1  #!/usr/bin/env bash
     2  set -euo pipefail
     3  
     4  # VERSION must be set before calling this script
     5  # It is intended to only be executed by make publish
     6  ls -R bin
     7  
     8  sed -e "s|PORTER_VERSION:-latest|PORTER_VERSION:-$VERSION|g" scripts/install/install-mac.sh > bin/$VERSION/install-mac.sh
     9  sed -e "s|PORTER_VERSION:-latest|PORTER_VERSION:-$VERSION|g" scripts/install/install-linux.sh > bin/$VERSION/install-linux.sh
    10  sed -e "s|PORTER_VERSION='latest'|PORTER_VERSION='$VERSION'|g" scripts/install/install-windows.ps1 > bin/$VERSION/install-windows.ps1
    11  sed -e "s|PORTER_VERSION:-latest|PORTER_VERSION:-$VERSION|g" scripts/bundle/bundle-linux.sh > bin/$VERSION/bundle-linux.sh