All pastes #420588 Raw Edit

skiidoo

public text v1 · immutable
·published 2007-04-02 07:56 UTC
rendered paste body
usedesc () {
    local portdir=$(sed -n 's:^PORTDIR=::p' /etc/make.conf);
    [ -z "$portdir" ] && portdir=/usr/portage;
    grep -h "$1.*\ -\ " ${portdir}/profiles/use.* | \
        gawk -F ' - ' ' { print (" \033[32;01m* \033[31;01m%s \033[0;01m- \033[36;01m%s\033[0;0m\n", $1, $2) }'
}