# -*-sh-*- # # $HeadURL: https://secure.tstotts.net/pubvc/etc.portage/bashrc $ # $Id: bashrc 659 2007-07-15 23:22:33Z tas $ # function set-cflags { export CFLAGS="$1"; export CXXFLAGS="$1"; echo -e "HACK:\tCFLAGS=${CFLAGS}" } function filter-out-lingua { export LINGUAS=`echo ${LINGUAS} | sed "s/\b${1}\b//"` } function set-locale { export LC_ALL="$1"; echo -e "HACK:\tLC_ALL=${LC_ALL}" } if [[ -n $P && ${ENABLE_BASHRC} == true ]]; then # echo -e "HACK:\tENABLE_BASHRC=true" # echo -e "HACK:\tP=${P}" if [[ $CHOST == *ppc* ]]; then true # case "$CATEGORY" in # "dev-java") set-locale "POSIX" ;; # esac fi if [[ $CHOST == *686* ]]; then true fi case "$CATEGORY/$P" in "mail-client/nmh-1.1") set-cflags "-O1" ;; esac fi # set -x