From e878ca0fd4ab52eedb58cab35dba2eb142daa360 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Wed, 19 Mar 2014 14:34:40 +0100 Subject: [PATCH] Don't use functions.sh from /etc/init.d anymore (bug #504118). Use "echo -e" for colored output. Signed-off-by: Lars Wendler --- gcc-config | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gcc-config b/gcc-config index 8d2347f..6315517 100755 --- a/gcc-config +++ b/gcc-config @@ -18,8 +18,9 @@ cd / trap ":" INT QUIT TSTP argv0=${0##*/} -source "${EPREFIX}"/etc/init.d/functions.sh || { - echo "${argv0}: Could not source ${EPREFIX}/etc/init.d/functions.sh!" 1>&2 +functions_script="/lib/gentoo/functions.sh" +source "${EPREFIX}"${functions_script} || { + echo "${argv0}: Could not source ${EPREFIX}${functions_script}!" 1>&2 exit 1 } esyslog() { :; } @@ -791,7 +792,7 @@ list_profiles() { source "${GCC_ENV_D}/config-${target}" [[ ${x} == ${CURRENT} ]] && x="${x} ${HILITE}*${NORMAL}" fi - echo " [${i}] ${x}" + echo -e " [${i}] ${x}" done } -- 1.9.1