From 396b2f8aeea0a241ea74d3b0a4508c4f7ca34241 Mon Sep 17 00:00:00 2001 From: Joonas Niilola Date: Wed, 27 Mar 2019 16:06:09 +0200 Subject: app-doc/eclass-manpages: display @SUPPORTED_EAPIS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Joonas Niilola Closes: https://github.com/gentoo/gentoo/pull/11516 Signed-off-by: Michał Górny --- app-doc/eclass-manpages/files/eclass-to-manpage.awk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'app-doc') 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) -- cgit v1.2.3-65-gdbad