diff options
Diffstat (limited to 'bin/ebuild-helpers/dohard')
-rwxr-xr-x | bin/ebuild-helpers/dohard | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/ebuild-helpers/dohard b/bin/ebuild-helpers/dohard index b52fd7c00..6ae93d240 100755 --- a/bin/ebuild-helpers/dohard +++ b/bin/ebuild-helpers/dohard @@ -1,7 +1,16 @@ #!/bin/bash -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +case "${EAPI}" in + 0|1|2|3) + ;; + *) + die "'${0##*/}' has been banned for EAPI '$EAPI'" + exit 1 + ;; +esac + if [[ $# -ne 2 ]] ; then echo "$0: two arguments needed" 1>&2 exit 1 |