summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Whalen <rj.whalen@gmail.com>2019-08-31 08:05:51 -0400
committerRyan Whalen <rj.whalen@gmail.com>2019-08-31 08:05:51 -0400
commitd266dbea152b106d01cb110be1529e6661d89f54 (patch)
treebc89e8c8e42d9c3ac6fdf43c605ea8e89df9fdb6
parent1a9ea04c7fff82fcdb7bbd7383ff5e4518840ef7 (diff)
downloadpodman-d266dbea152b106d01cb110be1529e6661d89f54.tar.gz
podman-d266dbea152b106d01cb110be1529e6661d89f54.tar.bz2
podman-d266dbea152b106d01cb110be1529e6661d89f54.zip
Exclude podman-remote
Signed-off-by: Ryan Whalen <rj.whalen@gmail.com>
-rwxr-xr-xhack/man-page-checker10
1 files changed, 3 insertions, 7 deletions
diff --git a/hack/man-page-checker b/hack/man-page-checker
index a1007d56f..ab1921b86 100755
--- a/hack/man-page-checker
+++ b/hack/man-page-checker
@@ -39,13 +39,9 @@ done
# Pass 2: compare descriptions.
#
# Make sure the descriptive text in podman-foo.1.md matches the one
-# in the table in podman.1.md.
-for md in *-*.1.md;do
- # Currently the only exception.
- if [ "$md" = "podman-remote.1.md" ]; then
- continue
- fi
-
+# in the table in podman.1.md. podman-remote is not a podman subcommand,
+# so it is excluded here.
+for md in $(ls -1 *-*.1.md | grep -v remote);do
desc=$(egrep -A1 '^#* NAME' $md|tail -1|sed -e 's/^podman[^ ]\+ - //')
# podman.1.md has a two-column table; podman-*.1.md all have three.