#!/bin/csh -f

scons -c

set dirs   = (src/examples src/execsrc src/libsrc src/libsrc++ src/test)
set PHECDA = /opt/programs/eviophecda

if(`\hostname | grep mauri | wc | awk '{print $1}'` != "1") then
	echo " This script should be run on mauri."
	exit
endif
	

echo
foreach d ($dirs)
	foreach x (`\ls $d/* | grep -v "\~"`)
		set Diff = (`\diff $x $PHECDA/$x | grep -v "\~" | wc | awk '{print $2}'`)
		if (`echo "$Diff"` != "0") then
			echo copying $x
			cp $PHECDA/$x $x
		endif
	end
end
echo
			