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