unexpected end of file during installation of synopsys sofware please help

hello everyone ,
i'm really new to the world of shell and linux. so after all i was trying to install the synopsys tool . i extracted the files and according to the manual i must run the setup.sh file. but when i run it i get the following message:
line 28: syntax error: unexpected end of file

the original shell script is as follow :
------------------------------------------------------------------

#! /bin/csh -f

if ( ! $?DISPLAY ) then
    echo ""
    echo "Note: The DISPLAY environment variable is not set."
    echo "      Set this variable to proceed with the graphical"
    echo "      installation." 
    echo ""
    exit 1
endif

set cmdpath = "$0"
set cmd = "$cmdpath:t"

if ( "$cmd" == "$cmdpath" ) then
  set cddir = "."
else
  set cddir = "$cmdpath:h"
endif

set cddir_path = $cddir

if ( $cddir_path == "." ) then
  set cddir_path = `pwd`
endif

$cddir_path/installer -gui 

----------------------------------------------------------------------

with regards