summaryrefslogtreecommitdiff
path: root/CCache
diff options
context:
space:
mode:
authorBjörn Esser <me@besser82.io>2015-12-16 11:01:59 +0100
committerBjörn Esser <me@besser82.io>2015-12-16 11:07:45 +0100
commit1a977a21922cb418de42c568aee418df3582f842 (patch)
tree1bb919b360552d7a263ed040039bed5b438b5ef3 /CCache
parent790c72944746ddcd6948daca89ecb4f758ac4493 (diff)
downloadswig-1a977a21922cb418de42c568aee418df3582f842.tar.gz
use sed only to filter CCache from $PATH
Diffstat (limited to 'CCache')
-rwxr-xr-xCCache/test.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/CCache/test.sh b/CCache/test.sh
index d8640ccaa..438e782cd 100755
--- a/CCache/test.sh
+++ b/CCache/test.sh
@@ -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.$$