summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2011-09-08 20:28:29 +0000
committerMichał Górny <mgorny@gentoo.org>2011-09-08 20:28:29 +0000
commit4c60a90d6e2789fe2da9993284e62b44163eb1a1 (patch)
treedd0d5b5d9168af13da783a7a70b023aa77cb9cdb /eclass/bash-completion-r1.eclass
parentversion bump (diff)
downloadhistorical-4c60a90d6e2789fe2da9993284e62b44163eb1a1.tar.gz
historical-4c60a90d6e2789fe2da9993284e62b44163eb1a1.tar.bz2
historical-4c60a90d6e2789fe2da9993284e62b44163eb1a1.zip
Add EAPI check (just to be sure).
Diffstat (limited to 'eclass/bash-completion-r1.eclass')
-rw-r--r--eclass/bash-completion-r1.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/bash-completion-r1.eclass b/eclass/bash-completion-r1.eclass
index 32dcae324aa1..04651df96447 100644
--- a/eclass/bash-completion-r1.eclass
+++ b/eclass/bash-completion-r1.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion-r1.eclass,v 1.1 2011/09/08 16:25:54 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion-r1.eclass,v 1.2 2011/09/08 20:28:29 mgorny Exp $
# @ECLASS: bash-completion-r1.eclass
# @MAINTAINER:
@@ -18,6 +18,11 @@
# }
# @CODE
+case ${EAPI:-0} in
+ 0|1|2|3|4) ;;
+ *) die "EAPI ${EAPI} unsupported (yet)."
+esac
+
# @FUNCTION: dobashcomp
# @USAGE: file [...]
# @DESCRIPTION: