summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gmail.com>2019-03-27 16:06:09 +0200
committerMichał Górny <mgorny@gentoo.org>2019-03-27 18:22:14 +0100
commit396b2f8aeea0a241ea74d3b0a4508c4f7ca34241 (patch)
treecfe3d7f15ab6ecd98dd1586b7e41753ae7d37886 /app-doc
parentmail-filter/opendkim: remove some no-op sed lines. (diff)
downloadgentoo-396b2f8aeea0a241ea74d3b0a4508c4f7ca34241.tar.gz
gentoo-396b2f8aeea0a241ea74d3b0a4508c4f7ca34241.tar.bz2
gentoo-396b2f8aeea0a241ea74d3b0a4508c4f7ca34241.zip
app-doc/eclass-manpages: display @SUPPORTED_EAPIS
Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Joonas Niilola <juippis@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/11516 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-doc')
-rw-r--r--app-doc/eclass-manpages/files/eclass-to-manpage.awk8
1 files changed, 6 insertions, 2 deletions
diff --git a/app-doc/eclass-manpages/files/eclass-to-manpage.awk b/app-doc/eclass-manpages/files/eclass-to-manpage.awk
index b40eaf112091..53e05973e16d 100644
--- a/app-doc/eclass-manpages/files/eclass-to-manpage.awk
+++ b/app-doc/eclass-manpages/files/eclass-to-manpage.awk
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# This awk converts the comment documentation found in eclasses
@@ -93,7 +93,7 @@ function xfail(text) {
function eat_line() {
ret = $0
- sub(/^# @[A-Z]*:[[:space:]]*/,"",ret)
+ sub(/^# @[^:]+:[[:space:]]*/,"",ret)
getline
return ret
}
@@ -201,6 +201,10 @@ function handle_eclass() {
print ".SH \"DESCRIPTION\""
print man_text(desc)
}
+ if (supported_eapis != "") {
+ print ".SH \"SUPPORTED EAPIS\""
+ print man_text(supported_eapis)
+ }
if (example != "") {
print ".SH \"EXAMPLE\""
print man_text(example)