From: Dietmar Maurer Date: Mon, 10 Oct 2016 15:48:44 +0000 (+0200) Subject: scan-adoc-refs: extract man page section from .adoc file X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=commitdiff_plain;h=34d7f485f61b77959f549ed1d43d597abe59547a scan-adoc-refs: extract man page section from .adoc file --- diff --git a/scan-adoc-refs b/scan-adoc-refs index eb70e51..a9f3b73 100755 --- a/scan-adoc-refs +++ b/scan-adoc-refs @@ -104,6 +104,12 @@ sub register_title { die "unable to change title (no doctype)" if !defined($fileinfo->{doctype}->{$env}->{$filename}); } + + if (defined($doctype) && ($env eq 'manvolnum') && ($doctype == 0)) { + if ($title =~ m/.*\(([1-8])\)\s*$/) { + $fileinfo->{mansection}->{$env}->{$filename} = $1; + } + } } sub scan_adoc_file {