#!/bin/sh
###########################################################
# Copyright (C) 2008-2009, CompHEP Collaboration
# Author: Alexander Sherstnev 
###########################################################
export COMPHEP=@CHEP@
export ROOTSYS=@RROOTT@
export PATH=$ROOTSYS/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH

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