From: | "Ned Ludd (solar)" <solar@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-projects commit in crossdev-wrappers/etc/portage: bashrc |
Date: | Thu, 26 Feb 2009 23:19:55 |
Message-Id: | E1LcpWB-00009v-TI@stork.gentoo.org |
1 | solar 09/02/26 23:19:51 |
2 | |
3 | Added: bashrc |
4 | Log: |
5 | - initial import into cvs. git what? git lost. |
6 | |
7 | Revision Changes Path |
8 | 1.1 crossdev-wrappers/etc/portage/bashrc |
9 | |
10 | file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/crossdev-wrappers/etc/portage/bashrc?rev=1.1&view=markup |
11 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/crossdev-wrappers/etc/portage/bashrc?rev=1.1&content-type=text/plain |
12 | |
13 | Index: bashrc |
14 | =================================================================== |
15 | . ${PORTDIR}/profiles/base/profile.bashrc |
16 | |
17 | post_src_install() { |
18 | [[ -d ${D} ]] || return 0 |
19 | [[ ${E_MACHINE} == "" ]] && return 0 |
20 | output="$( cd ${D} && scanelf -RmyBF%a . | grep -v -e ^${E_MACHINE} )" |
21 | [[ $output != "" ]] && { echo; echo "* Wrong EM_TYPE. Expected ${E_MACHINE}"; echo -e "${output}"; echo; exit 1; } |
22 | } |
23 | |
24 | # We dont functionize this to avoid sandboxing. |
25 | if [[ $EBUILD_PHASE == "postinst" ]]; then |
26 | [[ $EMERGE_FROM != binary ]] && cross-fix-root ${CHOST} |
27 | fi |