diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-07-24 17:01:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 17:01:40 +0200 |
commit | 22b1483902ed17fa6b0fd778575088be257800c2 (patch) | |
tree | 7e3796e033d3b04af0ebab2ef7adfbd9d8552ad3 /hack/xref-helpmsgs-manpages | |
parent | d9244761e4a637f8b2a109ba4b85fd0cc6bd34dc (diff) | |
parent | 964d3300c657047bb16c261e3ca5bdf4e0e1c3e5 (diff) | |
download | podman-22b1483902ed17fa6b0fd778575088be257800c2.tar.gz podman-22b1483902ed17fa6b0fd778575088be257800c2.tar.bz2 podman-22b1483902ed17fa6b0fd778575088be257800c2.zip |
Merge pull request #6938 from jwhonce/wip/n-connection
Refactor podman system connection
Diffstat (limited to 'hack/xref-helpmsgs-manpages')
-rwxr-xr-x | hack/xref-helpmsgs-manpages | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/hack/xref-helpmsgs-manpages b/hack/xref-helpmsgs-manpages index c1e9dffc4..16b596589 100755 --- a/hack/xref-helpmsgs-manpages +++ b/hack/xref-helpmsgs-manpages @@ -16,6 +16,9 @@ our $VERSION = '0.1'; # For debugging, show data structures using DumpTree($var) #use Data::TreeDumper; $Data::TreeDumper::Displayaddress = 0; +# unbuffer output +$| = 1; + ############################################################################### # BEGIN user-customizable section @@ -266,12 +269,16 @@ sub podman_man { elsif ($section eq 'commands') { # In podman.1.md if ($line =~ /^\|\s*\[podman-(\S+?)\(\d\)\]/) { - $man{$1} = podman_man("podman-$1"); + # $1 will be changed by recursion _*BEFORE*_ left-hand assignment + my $subcmd = $1; + $man{$subcmd} = podman_man("podman-$1"); } # In podman-<subcommand>.1.md elsif ($line =~ /^\|\s+(\S+)\s+\|\s+\[\S+\]\((\S+)\.1\.md\)/) { - $man{$1} = podman_man($2); + # $1 will be changed by recursion _*BEFORE*_ left-hand assignment + my $subcmd = $1; + $man{$subcmd} = podman_man($2); } } |