app-doc/eclass-manpages: display @SUPPORTED_EAPIS
authorJoonas Niilola <juippis@gmail.com>
Wed, 27 Mar 2019 14:06:09 +0000 (16:06 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 27 Mar 2019 17:22:14 +0000 (18:22 +0100)
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>
app-doc/eclass-manpages/files/eclass-to-manpage.awk

index b40eaf11209183181198e59867de4a228fced76b..53e05973e16db0f426f5733741c6abbb1a83db4e 100644 (file)
@@ -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)