From ab56ad3bba56fe9c040a83386563b8718f68bd16 Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: Jun 04 2010 19:57:27 +0000 Subject: - Reintroduce minor profile.d script performance improvements. --- diff --git a/ccache.sh.in b/ccache.sh.in index f844648..c751a60 100644 --- a/ccache.sh.in +++ b/ccache.sh.in @@ -1,9 +1,10 @@ # Use ccache by default. Users who don't want that can set the CCACHE_DISABLE # environment variable in their personal profile. -if ! echo "$PATH" | grep -Eq '(^|:)@LIBDIR@/ccache($|:)' ; then - PATH="@LIBDIR@/ccache:$PATH" -fi +case ":$PATH:" in + *:@LIBDIR@/ccache:*) ;; + *) PATH="@LIBDIR@/ccache:$PATH" ;; +esac # If @CACHEDIR@ 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 diff --git a/ccache.spec b/ccache.spec index f67aa46..1635c6d 100644 --- a/ccache.spec +++ b/ccache.spec @@ -6,7 +6,7 @@ Name: ccache Version: 3.0 -Release: 0.1.pre1%{?dist} +Release: 0.2.pre1%{?dist} Summary: C/C++ compiler cache Group: Development/Tools @@ -103,6 +103,9 @@ done %changelog +* Fri Jun 4 2010 Ville Skyttä - 3.0-0.2.pre1 +- Reintroduce minor profile.d script performance improvements. + * Thu May 13 2010 Ville Skyttä - 3.0-0.1.pre1 - Update to 3.0pre1 (#591040), license changed to GPLv3+.