--- gcc-config~ 2007-08-15 10:44:10 +0200 +++ gcc-config~ 2007-08-15 10:49:02 +0200 @@ -34,6 +34,7 @@ profile are located. -X, --get-stdcxx-incdir Print path where g++ include files of the given/current profile are located. + -n, --no-color Disable colorized output. Profile names are of the form: - For example: i686-pc-linux-gnu-3.2.1 @@ -456,7 +457,11 @@ x=${x##*/} if [[ ${x} == ${CURRENT_NATIVE} ]] ; then - x="${x} ${GOOD}*${NORMAL}" + if [[ -z ${NOCOLOR} ]]; then + x="${x} ${GOOD}*${NORMAL}" + else + x="${x} *" + fi elif [[ -e ${GCC_ENV_D}/config-${target} ]] ; then source "${GCC_ENV_D}/config-${target}" [[ ${x} == ${CURRENT} ]] && x="${x} ${HILITE}*${NORMAL}" @@ -661,6 +666,9 @@ DOIT="get_stdcxx_incdir" fi ;; + -n|--no-color) + NOCOLOR='yes please' + ;; -h|--help) usage 0 ;;