#!/bin/csh -f
#
#  use-solaris-cc - This script will change all of the Harvest Makefile's
#  to properly use the Solaris 2.x unbundled compiler.
#
#  use-solaris-cc,v 1.4 1994/09/01 16:58:10 hardy Exp
#
echo "Fixing Harvest Makefiles to use Solaris 2.x unbundled compiler..."
foreach i (`find . -name Makefile -print`)
        echo "Fixing ${i}"
        mv $i ${i}.old
        cat ${i}.old | sed -e 's/^CC.*=.*cc/CC = cc -D__svr4__=1/' > ${i}
        rm -f ${i}.old
end
exit 0
