summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-06-13 23:30:33 +0000
committerZac Medico <zmedico@gentoo.org>2006-06-13 23:30:33 +0000
commit043a46c6ee4908e80aa712ec2ce34259bd7dd76b (patch)
treeb595d69ebbf1ee21362733a95986f024c485c9dc /bin/ebuild.sh
parentfix path to ebuild for dsd, bug # 135705 (diff)
downloadportage-multirepo-043a46c6ee4908e80aa712ec2ce34259bd7dd76b.tar.gz
portage-multirepo-043a46c6ee4908e80aa712ec2ce34259bd7dd76b.tar.bz2
portage-multirepo-043a46c6ee4908e80aa712ec2ce34259bd7dd76b.zip
Source /etc/portage/bashrc after the profile.bashrcs, since user env should be over to override the profile env.
svn path=/main/trunk/; revision=3508
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh28
1 files changed, 14 insertions, 14 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 1683f913..651fdecb 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -47,20 +47,6 @@ OCXX="$CXX"
source /etc/profile.env &>/dev/null
-if [ -f "${PORTAGE_BASHRC}" ]; then
- # If $- contains x, then tracing has already enabled elsewhere for some
- # reason. We preserve it's state so as not to interfere.
- if [ "$PORTAGE_DEBUG" != "1" ] || [ "${-/x/}" != "$-" ]; then
- source "${PORTAGE_BASHRC}"
- else
- set -x
- source "${PORTAGE_BASHRC}"
- set +x
- fi
-fi
-[ ! -z "$OCC" ] && export CC="$OCC"
-[ ! -z "$OCXX" ] && export CXX="$OCXX"
-
export PATH="/usr/local/sbin:/sbin:/usr/sbin:${PORTAGE_BIN_PATH}:/usr/local/bin:/bin:/usr/bin:${ROOTPATH}"
[ ! -z "$PREROOTPATH" ] && export PATH="${PREROOTPATH%%:}:$PATH"
@@ -116,6 +102,20 @@ for dir in ${PROFILE_PATHS}; do
done
restore_IFS
+if [ -f "${PORTAGE_BASHRC}" ]; then
+ # If $- contains x, then tracing has already enabled elsewhere for some
+ # reason. We preserve it's state so as not to interfere.
+ if [ "$PORTAGE_DEBUG" != "1" ] || [ "${-/x/}" != "$-" ]; then
+ source "${PORTAGE_BASHRC}"
+ else
+ set -x
+ source "${PORTAGE_BASHRC}"
+ set +x
+ fi
+fi
+
+[ ! -z "$OCC" ] && export CC="$OCC"
+[ ! -z "$OCXX" ] && export CXX="$OCXX"
esyslog() {
# Custom version of esyslog() to take care of the "Red Star" bug.