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

if (test -x $COMPHEP/bin/cascade.exe) then
  if [ x$1 = xDEBUG ]; then
    ddd $COMPHEP/bin/cascade.exe
  else
    $COMPHEP/bin/cascade.exe $*
  fi
else
  echo ""
  echo "  cascade (error): no file $COMPHEP/bin/cascade.exe. Compile CompHEP"
  echo ""
  exit -1
fi
