# Makefile | 1 + # files/ccache-update-links.sh.in | 16 ++++++++++++++++ # 2 files changed, 17 insertions(+) # svn status M Makefile M files/ccache-update-links.sh.in Index: Makefile =================================================================== --- Makefile (revision 435512) +++ Makefile (working copy) @@ -3,6 +3,7 @@ PORTNAME= ccache PORTVERSION= 3.3.4 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://www.samba.org/ftp/ccache/ \ LOCAL/bdrewery Index: files/ccache-update-links.sh.in =================================================================== --- files/ccache-update-links.sh.in (revision 435512) +++ files/ccache-update-links.sh.in (working copy) @@ -29,6 +29,22 @@ in ;; esac +strip_path() { + local IFS=":" + local path + set -- ${PATH} + while [ $# -gt 0 ]; do + if ! [ "${1}" = "${PREFIX}/libexec/ccache" ]; then + path="${path}${path:+:}${1}" + fi + shift + done + echo "${path}" +} + +# Remove ccache wrappers from PATH +PATH=$(strip_path) + # create compiler links for comp in ${CCACHE_COMPILERS} do