Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 69e4c3204324cc91e560ae6aa3984f43 > files > 2

ccache-3.1-1.fc14.x86_64.rpm

# Use ccache by default.  Users who don't want that can set the CCACHE_DISABLE
# environment variable in their personal profile.

case ":${PATH:-}:" in
    *:/usr/lib64/ccache:*) ;;
    *) PATH="/usr/lib64/ccache${PATH:+:$PATH}" ;;
esac

# If /var/cache/ccache is writable, use a shared cache there.  Users who don't
# want that even if they have that write permission can set the CCACHE_DIR
# and unset the CCACHE_UMASK environment variables in their personal profile.

if [ -z "${CCACHE_DIR:-}" ] && [ -w /var/cache/ccache ] && [ -d /var/cache/ccache ] ; then
    export CCACHE_DIR=/var/cache/ccache
    export CCACHE_UMASK=002
    unset CCACHE_HARDLINK
fi