aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild/utils/exheres-0/banned_in_eapi_exheres-0
diff options
context:
space:
mode:
authorAvatar Benedikt Morbach <moben@exherbo.org> 2015-03-08 18:15:53 +0100
committerAvatar Gerrit Code Review <tomcat@galileo.mailstation.de> 2015-05-21 01:54:51 +0200
commit56bc0c7ce91f79ae382dbaace8c9e4f83e2471f4 (patch)
tree0be62d0ce2e601fc01300ff1a90a0d58ac873731 /paludis/repositories/e/ebuild/utils/exheres-0/banned_in_eapi_exheres-0
parent3d8736ae8c27617237c86a1239ee6d6d32f8fa26 (diff)
downloadpaludis-56bc0c7ce91f79ae382dbaace8c9e4f83e2471f4.tar.gz
paludis-56bc0c7ce91f79ae382dbaace8c9e4f83e2471f4.tar.xz
ban dosbin, heresbin and newsbin on cross
we merge sbin into bin now Change-Id: I40f01ec0a003930920be3854cf9d1592997a8e31
Diffstat (limited to 'paludis/repositories/e/ebuild/utils/exheres-0/banned_in_eapi_exheres-0')
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/exheres-0/banned_in_eapi_exheres-017
1 files changed, 11 insertions, 6 deletions
diff --git a/paludis/repositories/e/ebuild/utils/exheres-0/banned_in_eapi_exheres-0 b/paludis/repositories/e/ebuild/utils/exheres-0/banned_in_eapi_exheres-0
index dcf2488a6..62e547d14 100755
--- a/paludis/repositories/e/ebuild/utils/exheres-0/banned_in_eapi_exheres-0
+++ b/paludis/repositories/e/ebuild/utils/exheres-0/banned_in_eapi_exheres-0
@@ -17,12 +17,17 @@
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA
-COLOUR_RED=$'\e[31;01m'
-COLOUR_NORMAL=$'\e[0m'
+die_because_banned_in_eapi_exheres-0() {
+ COLOUR_RED=$'\e[31;01m'
+ COLOUR_NORMAL=$'\e[0m'
-echo "${COLOUR_RED}!!! Ebuild bug: '$(basename ${0} )' banned in EAPI exheres-0${COLOUR_NORMAL}"
-echo "$(basename ${0} ): making ebuild PID ${EBUILD_KILL_PID} exit with error" 1>&2
-kill -s SIGUSR1 "${EBUILD_KILL_PID}"
+ echo "${COLOUR_RED}!!! Exheres bug: '$(basename ${0} )' banned in EAPI exheres-0${COLOUR_NORMAL}"
+ echo "$(basename ${0} ): making exheres PID ${EBUILD_KILL_PID} exit with error" 1>&2
+ kill -s SIGUSR1 "${EBUILD_KILL_PID}"
-exit 123
+ exit 123
+}
+
+# die if called directly, but not if sourced
+return 2> /dev/null || die_because_banned_in_eapi_exheres-0