use sed only to filter CCache from $PATH

This commit is contained in:
Björn Esser 2015-12-16 11:01:59 +01:00
commit 1a977a2192

View file

@ -18,8 +18,7 @@ fi
# fix: Remove ccache from $PATH if it exists
# as it will influence the unit tests
PATH="`echo $PATH | \
awk -v RS=: -v ORS=: '/\/usr\/lib(64|)\/ccache(:|)/ {next} {print}' | \
sed 's/:*$//'`"
sed -e 's!:/usr\(/local\)*/lib\([0-9]\)*/ccache\(/\)*!!g'`"
CCACHE=../ccache-swig
TESTDIR=test.$$