This is a csh script, not a bash script. You should be able to run it simply as
Actually, to things look strange: why does you software not provide a bash script? Bash is pretty much the standard on linuxes. And why is it called 'cshrc'? cshrc, as bashrc, is the standard csh startup file, AFAIK.
Perhaps it helps,