Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > aa89c086671c0d57fa56d7c6fcb04658 > files > 1

icecream-0.9.4-5.fc12.i686.rpm

# 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