#!/bin/csh -f


if !(-e .game-name) then
echo No game name file
exit 1
endif

set game = `cat .game-name`

shit:
echo runing preprocessor
cd ~/Mail/$game-Turns
source .Preproc.config

$preproc [0-9] [1-9][0-9] >! ~/$game/turn

echo making backup
cp -p ~/$game/blindrc ~/$game/b.bak
cd ~/$game

Blind t q < turn | less

echo -n OK\?
set ok = $<

set ok = `echo $ok`
if ($ok !~ [yY]*) then
  cp b.bak blindrc
  goto shit
endif

Blind

if ($status ) then
  exit 1
endif
rm b.bak turn

mailer
