aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2016-06-02 10:47:19 -0400
committerGöktürk Yüksek <gokturk@gentoo.org>2016-10-30 21:09:24 -0400
commit6b30f180594d6b6507aefc32505571bb420c579a (patch)
treec4be6f3aed4694f6f5f5e036129f1c8ce1023891 /eclass-writing
parenteclass-writing: add documentation to the first existing example. (diff)
downloaddevmanual-6b30f180594d6b6507aefc32505571bb420c579a.tar.gz
devmanual-6b30f180594d6b6507aefc32505571bb420c579a.tar.bz2
devmanual-6b30f180594d6b6507aefc32505571bb420c579a.zip
eclass-writing: add documentation to the incorrect usage example.
Now that we have guidelines for documenting eclasses, the "Handling incorrect usage of an eclass" section is under-documented. This commit adds the minimum required documentation (eclass header) to that example. Gentoo-Bug: 373145
Diffstat (limited to 'eclass-writing')
-rw-r--r--eclass-writing/text.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass-writing/text.xml b/eclass-writing/text.xml
index 518cf2a..def2b89 100644
--- a/eclass-writing/text.xml
+++ b/eclass-writing/text.xml
@@ -382,7 +382,10 @@ for an eclass to invoke die from the global scope. For example:
# Distributed under the terms of the GNU General Public License v2
# &#36;Id&#36;
-# Purpose: Demonstration of die upon invalid EAPI usage.
+# @ECLASS: eapi-die.eclass
+# @MAINTAINER:
+# Gentoo Devmanual Project &lt;devmanual@gentoo.org&gt;
+# @BLURB: Calls die when used with an invalid EAPI.
case ${EAPI:-0} in
0) die "this eclass doesn't support EAPI 0" ;;