#!/bin/sh
###########################################################
# Copyright (C) 2001-2009, CompHEP Collaboration
# Author: Alexander Sherstnev 
###########################################################

export COMPHEP=@CHEP@

if (test -z $1) then
   echo "***********************************************"
   echo "* INPUT ERROR: no events files to mix         *"
   echo "* usage:                                      *"
   echo "*     ./translator {files_with_events}        *"
   echo "***********************************************"
  exit 99
fi

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