projects
/
pve-docs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e2fdb3
)
scan-adoc-refs: extract man page section from .adoc file
author
Dietmar Maurer
<dietmar@proxmox.com>
Mon, 10 Oct 2016 15:48:44 +0000
(17:48 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Mon, 10 Oct 2016 15:59:25 +0000
(17:59 +0200)
scan-adoc-refs
patch
|
blob
|
blame
|
history
diff --git
a/scan-adoc-refs
b/scan-adoc-refs
index eb70e510795b69c76bc4131eb5049cde3055e511..a9f3b739750db8b81fcd763191e9a88b9cab508b 100755
(executable)
--- 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 {