From e9b29c11fd7fbb0efabb254bfd42964e91d9c2b9 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Mon, 23 Feb 2009 00:04:50 +0200 Subject: [PATCH] ccache: changed to use build/.ccache* instead of build/ccache so build/* gives only builds --- develop/ccache/parse-config | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/develop/ccache/parse-config b/develop/ccache/parse-config index ae703be19..09bb98a23 100644 --- a/develop/ccache/parse-config +++ b/develop/ccache/parse-config @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../ccache/parse-config -# Copyright (C) 2006 - 2007 The OpenSDE Project +# Copyright (C) 2006 - 2009 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. @@ -24,8 +24,17 @@ elif [ "$SDECFG_DEBUG" == 1 ]; then else unset ${!CCACHE_*} + # migration, build/ccache-* -> build/.ccache-* + # + for x in $(cd "$base/build" 2> /dev/null && ls -1d ccache-* 2> /dev/null); do + if [ ! -d "$base/build/.$x" ]; then + echo_warning "ccache: moving $x to build/.$x" + mv "$base/build/$x" "$base/build/.$x" + fi + done + # wrap the sytem compiler - ccache_dir=ccache + ccache_dir=".ccache" if atstage toolchain; then x=`/bin/uname -m | uname2arch` var_append ccache_dir - $x