#!/bin/tcsh

find `pwd` -type f -name "Makefile" -print > `pwd`/MakefileList

foreach i ( `cat ./MakefileList` )
        echo "Processing $i ..."
        sed -e 's#LIBFAM =#LIBFAM = /opt/fsw4sun/lib/libfam.so.0#g' $i > /tmp/k
        mv -f /tmp/k $i
end


