From 32fbf942911c1aeb131ab777a1212ea7098aef67 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 22 Apr 2011 22:00:00 +0200 Subject: [PATCH] Set ccache paths using the "regular" mechanism --- sys/bashrc | 8 -------- sys/profile | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/sys/bashrc b/sys/bashrc index a49c425..ea80770 100644 --- a/sys/bashrc +++ b/sys/bashrc @@ -142,14 +142,6 @@ fi # less(1) filter, if available type -p lesspipe >/dev/null 2>&1 && eval `lesspipe` -# Initialize ccache(1), if installed -if [ -d "/usr/lib/ccache" ]; then - PATH="/usr/lib/ccache:$PATH" - # Set the cache directory to local storage, if available - [ -w "/usr/local/home/$USER" ] \ - && export CCACHE_DIR="/usr/local/home/$USER/.ccache" -fi - # Setup slrn(1) and cleanscore(1), if installed type -p cleanscore >/dev/null 2>&1 [ $? -eq 0 ] && alias slrn="cleanscore -f ~/.slrnscore && slrn" diff --git a/sys/profile b/sys/profile index 7813210..7471952 100644 --- a/sys/profile +++ b/sys/profile @@ -29,7 +29,7 @@ else fi # prepend optional directories to PATH ... path="" -for d in /Developer/usr/bin /usr/pkg/bin /opt/*/bin; do +for d in /Developer/usr/bin /usr/pkg/bin /usr/lib/ccache /opt/*/bin; do [ -d "$d" -o -h "$d" ] && path="$path$d:" done [ -n "$path" ] && PATH="$path$PATH" -- 2.39.2