### Begin  - personal commands following this line:
#   Use NEWPATH instead of PATH in this section

# Most other directories should be added to the end of the paths
setenv NEWPATH ${PATH}:/usr/games

# Set up path to SUN compilers


if -d /opt/SUNWspro then
  setenv NEWPATH /opt/SUNWspro/bin:$NEWPATH
  setenv MANPATH /opt/SUNWspro/man:$MANPATH
  setenv LD_LIBRARY_PATH /opt/SUNWspro/lib:$LD_LIBRARY_PATH
endif


# Set up path to latest version of gcc



if -d /opt/gcc-4.1.1 then
  setenv GCC_HOME /opt/gcc-4.1.1
endif


if $?GCC_HOME then

 if -d ${GCC_HOME}/bin then
   setenv NEWPATH ${GCC_HOME}/bin:${NEWPATH}
 endif

 if  -d ${GCC_HOME}/lib then
   if ($?LD_LIBRARY_PATH) then
     setenv LD_LIBRARY_PATH ${GCC_HOME}/lib:${LD_LIBRARY_PATH}
   else
     setenv LD_LIBRARY_PATH ${GCC_HOME}/lib
   endif
 endif

 if  -d ${GCC_HOME}/man then
   if ($?MANPATH) then
     setenv MANPATH ${GCC_HOME}/man:${MANPATH}
   else
     setenv MANPATH ${GCC_HOME}/man
   endif
 endif

endif


#set up path to latest version of gdb



if -d /opt/gdb-6.6.0 then
  setenv GDB_HOME /opt/gdb-6.6.0
endif


if $?GDB_HOME then

 if -d ${GDB_HOME}/bin then
   setenv NEWPATH ${GDB_HOME}/bin:${NEWPATH}
 endif

 if  -d ${GDB_HOME}/lib then
   if ($?LD_LIBRARY_PATH) then
     setenv LD_LIBRARY_PATH ${GDB_HOME}/lib:${LD_LIBRARY_PATH}
   else
     setenv LD_LIBRARY_PATH ${GDB_HOME}/lib
   endif
 endif

 if  -d ${GDB_HOME}/man then
   if ($?MANPATH) then
     setenv MANPATH ${GDB_HOME}/man:${MANPATH}
   else
     setenv MANPATH ${GDB_HOME}/man
   endif

 endif

endif


# this comment ensure that the file has a newline after the last command
