#!/bin/tcsh

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

foreach i ( `cat ./MakefileList` )
	echo "Processing $i ..."
	sed -e 's#-DSOLARIS#-DPOSIX_PTHREAD_SEMANTICS -DSOLARIS#g' $i > /tmp/k
	mv -f /tmp/k $i
end

