Add EAPI check (just to be sure).
authorMichał Górny <mgorny@gentoo.org>
Thu, 8 Sep 2011 20:28:29 +0000 (20:28 +0000)
committerMichał Górny <mgorny@gentoo.org>
Thu, 8 Sep 2011 20:28:29 +0000 (20:28 +0000)
eclass/bash-completion-r1.eclass

index 32dcae324aa14b68767ccf1d70a8c12e6518213f..04651df964474cc47586ade286f97f17a64cf97f 100644 (file)
@@ -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:
 # }
 # @CODE
 
+case ${EAPI:-0} in
+       0|1|2|3|4) ;;
+       *) die "EAPI ${EAPI} unsupported (yet)."
+esac
+
 # @FUNCTION: dobashcomp
 # @USAGE: file [...]
 # @DESCRIPTION: