set hn=`hostname -s`
# do not do anything on gonzo
if ( "$hn" != "gonzo" ) then

    set cputype=`grep QEMU /proc/cpuinfo`
    [ ! -z "$cputype" ] && echo "* virtual host"
    unset cputype

    setup_gcc 3.4.6
	if ( $status != 0 ) then
	    echo "* could not set up gcc! not setting up NOMAD!"
		exit `geterrno ENOPKG`
	endif

    echo "* setting up NOMAD environment"
    setenv NOMAD /data/gonzo3/nomadlite
    setenv NOMAD_LEVEL cvs

# CERN environment variables are required for by the nuage/neglib makefiles
# even though they are already specified in
# $NOMAD/$NOMAD_LEVEL/src/Rules/Cern.versions
# Thu Nov 17 14:18:07 EST 2011 this may not be true with neginstall
# neginstall is not run in the 'jobs' subdir, and without these vars set,
# the correct CERN path does not get used.
    setenv CERN /data/gonzo3/cern
    setenv CERN_LEVEL 2003

    source $NOMAD/$NOMAD_LEVEL/scripts/setup_nomad_uschep.csh
endif
unset hn
