summaryrefslogtreecommitdiff
path: root/docs/remote-docs.sh
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-04-12 12:16:44 -0700
committerGitHub <noreply@github.com>2021-04-12 12:16:44 -0700
commit6933d4611a94097681a1d8435290d9bb1c59f1f4 (patch)
tree34333507f5c964c36ac3ae34ed8fff225fe5ef94 /docs/remote-docs.sh
parentddffc7fa803fa22033459fd5666679179c3581bc (diff)
parentb6b0b6e8bd0f8c75fe9411f722a43f9305c6137a (diff)
downloadpodman-6933d4611a94097681a1d8435290d9bb1c59f1f4.tar.gz
podman-6933d4611a94097681a1d8435290d9bb1c59f1f4.tar.bz2
podman-6933d4611a94097681a1d8435290d9bb1c59f1f4.zip
Merge pull request #9381 from cevich/add_make_release
Reorganize and overhaul Makefile & release archive workflows
Diffstat (limited to 'docs/remote-docs.sh')
-rwxr-xr-xdocs/remote-docs.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/remote-docs.sh b/docs/remote-docs.sh
index 67c731e75..2b7d73cd3 100755
--- a/docs/remote-docs.sh
+++ b/docs/remote-docs.sh
@@ -6,7 +6,17 @@ PLATFORM=$1 ## linux, windows or darwin
TARGET=${2} ## where to output files
SOURCES=${@:3} ## directories to find markdown files
-PODMAN=${PODMAN:-bin/podman-remote} ## location overridden for testing
+# Overriden for testing. Native podman-remote binary expected filepaths
+if [[ -z "$PODMAN" ]]; then
+ case $(env -i HOME=$HOME PATH=$PATH go env GOOS) in
+ windows)
+ PODMAN=bin/windows/podman.exe ;;
+ darwin)
+ PODMAN=bin/darwin/podman ;;
+ *) # Assume "linux"
+ PODMAN=bin/podman-remote ;;
+ esac
+fi
function usage() {
echo >&2 "$0 PLATFORM TARGET SOURCES..."