#!/opt/bin/tcsh
#
# to be cronned on the half hour
# trying to interact neatly with waiaha on the hour

setenv SYBASE /u/sybase
setenv CVS_RSH ssh
eval `/u/sybase/.ssh/fsa -c metabase`

#
#	this script must be rwx------

        cd $HOME/cvs/metabase

	cvs update Notify.Mask.tcl
	cvs update Notify.MaskBlu.tcl

	./YAKUZA/processUpdates

        source YAKUZA/Extract2.csh

	mv Mask.dat Mask.uns
	mv MaskBlu.dat MaskBlu.uns

	sort -n -t \t Mask.uns > Mask.dat
	sort -n -t \t MaskBlu.uns > MaskBlu.dat

	cvs commit -m "Processed updates from waiaha and resorted" MaskBlu.dat
	cvs commit -m "Processed updates from waiaha and resorted" Mask.dat

#	now waiaha can compare itself to updated cvs 

#	and now commit!
#	cvs commit -m "Automatic YAKUZA archiving by cron job on oyabun"