#!/bin/tcsh

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

foreach i ( `cat ./MakefileList` )
        echo "Processing $i ..."
        sed -e 's#-instances=extern#-instances=global#g' $i > /tmp/k
        mv -f /tmp/k $i
        sed -e 's#-template=extdef,#-template=#g' $i > /tmp/k
        mv -f /tmp/k $i
end


