[bin] improve armv7a-emerge code, needs testing
This commit is contained in:
parent
7a97c8a2a7
commit
77864cfd0e
@ -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"
|
DISTCC_PATH="/usr/lib/distcc/bin"
|
||||||
CUR_CHOST="armv7a-hardfloat-linux-gnueabi"
|
CUR_CHOST="armv7a-hardfloat-linux-gnueabi"
|
||||||
DISTCC_WRAPPER="${CUR_CHOST}-wrapper"
|
DISTCC_WRAPPER="${CUR_CHOST}-wrapper"
|
||||||
|
|
||||||
echo "setting up symlinks in ${DISTCC_PATH}"
|
pushd "${DISTCC_PATH}" > /dev/null || exit 1
|
||||||
|
|
||||||
pushd "${DISTCC_PATH}" || exit 1
|
|
||||||
cur_link=$(readlink cc)
|
cur_link=$(readlink cc)
|
||||||
if [ "${cur_link}" = "/usr/bin/distcc" ] || [ ! -f "${DISTCC_WRAPPER}" ]; then
|
if [ "${cur_link}" = "/usr/bin/distcc" ] || [ ! -f "${DISTCC_WRAPPER}" ]; then
|
||||||
echo "Fixing links in ${DISTCC_PATH}"
|
echo "Fixing links in ${DISTCC_PATH}"
|
||||||
@ -22,7 +24,5 @@ if [ "${cur_link}" = "/usr/bin/distcc" ] || [ ! -f "${DISTCC_WRAPPER}" ]; then
|
|||||||
fi
|
fi
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# PATH="${DISTCC_PATH}:${PATH}"
|
|
||||||
export FEATURES PATH
|
export FEATURES PATH
|
||||||
|
exec emerge "$@"
|
||||||
exec pump emerge "$@"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user