#!/bin/sh
###########################################################
# Copyright (C) 2001-2009, CompHEP Collaboration
###########################################################
export COMPHEP=@CHEP@

if [ x$1 = xDEBUG ]; then
	DDD=ddd
fi

if(test -x $COMPHEP/bin/diag_viewer.exe) then
while :
do
  ${DDD} $COMPHEP/bin/s_comphep.exe $*
  case $? in
    13) ;;
    24) ${DDD} $COMPHEP/bin/s_comphep.exe -blind "]}}]]]}]}9"
        break;;
    *)
      break
  esac
done
else
  echo "comphep (error): no file $COMPHEP/bin/s_comphep.exe"
  exit -1
fi
