[bin] improve armv7a-emerge code, needs testing

This commit is contained in:
Fabio Erculiani 2011-12-24 15:08:34 +01:00
parent 7a97c8a2a7
commit 77864cfd0e

View File

@ -1,13 +1,15 @@
#!/bin/bash
#!/bin/sh
. /etc/make.conf
# just make sure
FEATURES="${FEATURES} distcc distcc-pump"
FEATURES="distcc -distcc-pump"
DISTCC_PATH="/usr/lib/distcc/bin"
CUR_CHOST="armv7a-hardfloat-linux-gnueabi"
DISTCC_WRAPPER="${CUR_CHOST}-wrapper"
echo "setting up symlinks in ${DISTCC_PATH}"
pushd "${DISTCC_PATH}" || exit 1
pushd "${DISTCC_PATH}" > /dev/null || exit 1
cur_link=$(readlink cc)
if [ "${cur_link}" = "/usr/bin/distcc" ] || [ ! -f "${DISTCC_WRAPPER}" ]; then
echo "Fixing links in ${DISTCC_PATH}"
@ -22,7 +24,5 @@ if [ "${cur_link}" = "/usr/bin/distcc" ] || [ ! -f "${DISTCC_WRAPPER}" ]; then
fi
popd
# PATH="${DISTCC_PATH}:${PATH}"
export FEATURES PATH
exec pump emerge "$@"
exec emerge "$@"