Lines 382-388
for an eclass to invoke die from the global scope. For example:
Link Here
|
382 |
# Distributed under the terms of the GNU General Public License v2 |
382 |
# Distributed under the terms of the GNU General Public License v2 |
383 |
# $Id$ |
383 |
# $Id$ |
384 |
|
384 |
|
385 |
# Purpose: Demonstration of die upon invalid EAPI usage. |
385 |
# @ECLASS: eapi-die.eclass |
|
|
386 |
# @MAINTAINER: |
387 |
# Gentoo Devmanual Project <devmanual@gentoo.org> |
388 |
# @BLURB: Calls die when used with an invalid EAPI. |
386 |
|
389 |
|
387 |
case ${EAPI:-0} in |
390 |
case ${EAPI:-0} in |
388 |
0) die "this eclass doesn't support EAPI 0" ;; |
391 |
0) die "this eclass doesn't support EAPI 0" ;; |
389 |
- |
|
|