#!/bin/csh -f
date

if ( -e test) then
   
else 
  mkdir ${PWD}/test
endif

cp checkmc.kumac test/
cp checkmc_reference.hbook test/


rm -f test/checkmc.log
rm -f test/checkmc.ps
rm -f test/checkmc_paw.log


echo "checkmc_${OSTYPE}  < input_example >& test/checkmc.log "
checkmc_${OSTYPE}  < input_example >& test/checkmc.log 

cd test

pawX11 >& checkmc_paw.log << EOF
1
exec checkmc
exit
EOF
echo " Checkmc finished ... "
echo " Output in files checkmc.log" 
echo "           and   checkmc.ps"
date
