From e35a5a674db5b1369b6c295d8f694ad4694eab8e Mon Sep 17 00:00:00 2001 From: Ryan Whalen Date: Fri, 30 Aug 2019 10:09:50 -0400 Subject: Fix formatting and enable hack/man-page-checker Signed-off-by: Ryan Whalen --- hack/man-page-checker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hack') diff --git a/hack/man-page-checker b/hack/man-page-checker index 8e9b5a50d..69c629c52 100755 --- a/hack/man-page-checker +++ b/hack/man-page-checker @@ -40,7 +40,7 @@ done # # 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 +for md in *-*.1.md;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. -- cgit v1.2.3-54-g00ecf From c153895424d2b1071be8094d1f69670086af7332 Mon Sep 17 00:00:00 2001 From: Ryan Whalen Date: Fri, 30 Aug 2019 12:28:52 -0400 Subject: WIP - ignore man pages for commands besides podman Signed-off-by: Ryan Whalen --- hack/man-page-checker | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hack') diff --git a/hack/man-page-checker b/hack/man-page-checker index 69c629c52..a1007d56f 100755 --- a/hack/man-page-checker +++ b/hack/man-page-checker @@ -41,6 +41,11 @@ done # 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 + 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. -- cgit v1.2.3-54-g00ecf From d266dbea152b106d01cb110be1529e6661d89f54 Mon Sep 17 00:00:00 2001 From: Ryan Whalen Date: Sat, 31 Aug 2019 08:05:51 -0400 Subject: Exclude podman-remote Signed-off-by: Ryan Whalen --- hack/man-page-checker | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'hack') 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. -- cgit v1.2.3-54-g00ecf