# Script can be used with csh or tcsh. ## Get OS type ## set os = `uname` if( $os == 'Linux' ) then ## GNLX86 ## # (a) Add path information set ggm = # # is the directory where Matlab libraries were installed set MATL_LIB = ${mcr_root}/bin/glnx86:${mcr_root}/sys/os/glnx86:${mcr_root}/runtime/glnx86 setenv XAPPLRESDIR ${mcr_root}/X11/app-defaults setenv LD_LIBRARY_PATH :${MATL_LIB} # Needed for 2008a Matlab exectuables alias tsview `which tsview` alias velview `which velview` else if( $os == 'Darwin' ) then ## For Intel Mac OSX # (a) Add path information set ggm = # # is directory where Matlab libraries were installed /Applications/MATLAB/MATLAB_Compiler_Runtime/v78 by default setenv DYLD_LIBRARY_PATH ${mcr_root}/runtime/maci:${mcr_root}/sys/os/maci:${mcr_root}/bin/maci:/System/Library/Frameworks/JavaVM.framework/JavaVM:/System/Library/Frameworks/JavaVM.framework/Libraries setenv XAPPLRESDIR ${mcr_root}/X11/app-defaults else echo "$os is unknown OS type" endif