From kde-commits Wed Jul 18 18:10:18 2012 From: =?utf-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 18 Jul 2012 18:10:18 +0000 To: kde-commits Subject: icecream/client Message-Id: <20120718181018.3D103AC7A9 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=134263527531706 SVN commit 1306367 by lunakl: fix clang includes path if not in /usr prefix Since clang will be installed in /usr , it will be looking for them under that prefix as well. M +6 -2 icecc-create-env --- trunk/icecream/client/icecc-create-env #1306366:1306367 @@ -167,9 +167,13 @@ add_file $added_compilerwrapper /usr/bin/g++ # clang always uses its internal .h files clangincludes=$(dirname $($added_clang -print-file-name=include/limits.h)) + clangprefix=$(dirname $(dirname $added_clang)) for file in $clangincludes/*; do - file=$(readlink -e $file) - add_file "$file" "$file" + # get path without .. + destfile=$(readlink -e $file) + # and convert from to /usr if needed + destfile=$(echo $destfile | sed "s#$clangprefix#/usr#" ) + add_file "$file" "$destfile" done fi