Skip to content

Commit

Permalink
Filter out Docker man pages that don't exist in Docker
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
  • Loading branch information
rhatdan committed Apr 26, 2023
1 parent 77e1df4 commit 5c404fb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/dckrman.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,37 @@
#!/bin/sh
for i in $@; do
b=$(basename $i)
if [[ "$b" =~ "podman-auto" ]] || \
[[ "$b" =~ "exists" ]] || \
[[ "$b" =~ "mount" ]] || \
[[ "$b" =~ "podman-completion" ]] || \
[[ "$b" =~ "podman-container-checkpoint" ]] || \
[[ "$b" =~ "podman-container-cleanup" ]] || \
[[ "$b" =~ "podman-container-clone" ]] || \
[[ "$b" =~ "podman-container-restore" ]] || \
[[ "$b" =~ "podman-container-runlabel" ]] || \
[[ "$b" =~ "podman-generate" ]] || \
[[ "$b" =~ "podman-healthcheck" ]] || \
[[ "$b" =~ "podman-image-diff" ]] || \
[[ "$b" =~ "podman-image-scp" ]] || \
[[ "$b" =~ "podman-image-sign" ]] || \
[[ "$b" =~ "podman-image-trust" ]] || \
[[ "$b" =~ "podman-image-tree" ]] || \
[[ "$b" =~ "podman-init" ]] || \
[[ "$b" =~ "podman-kube" ]] || \
[[ "$b" =~ "podman-machine" ]] || \
[[ "$b" =~ "podman-network-update" ]] || \
[[ "$b" =~ "podman-pod" ]] || \
[[ "$b" =~ "podman-system-connection" ]] || \
[[ "$b" =~ "podman-system-migrate" ]] || \
[[ "$b" =~ "podman-system-renumber" ]] || \
[[ "$b" =~ "podman-volume-export" ]] || \
[[ "$b" =~ "podman-volume-import" ]] || \
[[ "$b" =~ "reload" ]] || \
[[ "$b" =~ "unmount" ]] || \
[[ "$b" =~ "unshate" ]]; then
continue
fi
filename=$(echo $i | sed 's/podman/docker/g')
echo .so man1/$b > $filename
done
Expand Down

0 comments on commit 5c404fb

Please sign in to comment.