Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-07-26 08:11:08

0001 #!/bin/csh
0002 
0003 set sourced = ($_)
0004 if ("$sourced" == "") then
0005    echo "Script should be sourced."
0006    echo "source setup.csh"
0007    exit 1
0008 endif
0009 
0010 if ( -r "./setup.csh" ) then
0011   set MYDIR=`pwd`
0012   if ($?prompt) then
0013     echo "--> Setting DEMPgen to '$MYDIR'"
0014   endif
0015 else
0016   if ( "$1" == "" ) then
0017     echo "ERROR:  'setup.csh' should have a path to the DEMPgen location as its argument."
0018     echo "   Often this is also the location of the setup.csh script itself:"
0019     echo "     source /my/path/to/setup.csh /my/path/to/setup.csh"
0020     echo "   Or, if you have already cd'd into the DEMPgen directory, then you can call:"
0021     echo '     source setup.csh `pwd`'
0022     exit 1
0023   else
0024     set MYDIR=$1
0025   endif
0026 endif
0027 
0028 setenv DEMPgen $MYDIR
0029 # Check if LD_LIBRARY_PATH is defined
0030 if ( ! ($?LD_LIBRARY_PATH) ) then
0031    setenv LD_LIBRARY_PATH ""
0032 endif
0033 # Check if DYLD_LIBRARY_PATH is defined
0034 if ( ! ($?DYLD_LIBRARY_PATH) ) then
0035    setenv DYLD_LIBRARY_PATH ""
0036 endif
0037 setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${DEMPgen}"