# Leaves path unchanged if icecc is already there. # If ccache is there, adds icecc _after_ it. # Otherwise adds icecc to the beginning. if ( "$path" !~ *@LIBDIR@/icecc/bin* ) then if ( "$path" !~ *@LIBDIR@/ccache* ) then set path = ( @LIBDIR@/icecc/bin $path ) else @ pos = 0 foreach item ( $path ) @ pos = $pos + 1 if ( $item == @LIBDIR@/ccache ) break end @ next_pos = $pos + 1 set path = ( $path[1-$pos] @LIBDIR@/icecc/bin \ $path[$next_pos-]) unset next_pos unset pos unset item endif endif