echo "Setup Darwin ...";
#site Web :
#ln -sf /Library/WebServer/Documents_laurentgarnier /Library/WebServer/Documents

setenv PATH ${PATH}:/usr/local/bin

alias 2HEPVis "cd ~/Work/HEPVis/v6r5"
alias 2POVAMA "cd ~/Work/POVAMA"

setenv MySVN_Copy "~/Work/To_SVN"
setenv OPENROOT "~/Work/OpenScientist/v12r1"
alias  OPENSCIENTIST "setenv CMTCONFIG Darwin;setenv CMTPATH ${OPENROOT};"
#setenv PATH ~/Work/OpenScientist/v12r1/CMT/v1r16/Darwin:/sw/bin:usr/local/bin:${PATH}
#PATH=/usr/local/gcc/3.3.2/bin:/usr/bin:/sw/bin:/sw/qt/bin:/bin:/sbin:/usr/bin:/usr/sbin:${OPENROOT}/CMT/v1r16/Darwin

#setenv QTDIR /Developer/qt
#setenv PATH ${QTDIR}/bin:${PATH}
#setenv MANPATH ${QTDIR}/doc/man:$MANPATH

if ($?DYLD_LIBRARY_PATH) then
#  setenv DYLD_LIBRARY_PATH ${QTDIR}/lib:/sw/lib:/sw/lib/InventorDebug:${DYLD_LIBRARY_PATH}
else
#  setenv DYLD_LIBRARY_PATH ${QTDIR}/lib:/sw/lib:/sw/lib/InventorDebug
endif

#alias CMT  source ~/Work/OpenScientist/v12r1/CMT/v1r16/mgr/setup.csh
alias CMT  source ~/Work/OpenScientist/v13r0/CMT/v1r14p20031120/mgr/setup.csh


alias xp "2HEPVis; cd cmt; xemacs ../source/SoPlotter.cxx ../source/SoAxis.cxx ../source/SoAxisGroup.cxx ../application/Axis.cxx ../application/plotter.cxx; xemacs ../include/HEPVis/nodekits/SoPlotter.h  ../include/HEPVis/nodekits/SoAxis.h  ../include/HEPVis/nodekits/SoAxisGroup.h&; setLD"
alias xh "2HEPVis;cd cmt; xemacs ../source/SbHatch.cxx ../source/SoHatching.cxx  ../applications/HatchBox.cxx  ../include/HEPVis/nodes/SoHatching.h ../include/HEPVis/SbHatch.h &; setLD"
alias xpov "2POVAMA;cd cmt; xemacs ../source/SoPovama.cpp ../applications/PovamaAtlas.cpp ../SoPovama/SoPovama.h&; setLD "
alias wh "2HEPVis;cd cmt;CMT;cmt config;source setup.csh"
alias wp "2POVAMA;cd cmt;CMT;cmt config;source setup.csh"
alias plot " wh;xp"
alias hatch " wh;xh"
alias pov " wp;xpov"
alias X11 "open /Applications/Utilities/X11.app"

alias SVN_configurationGet "cd ${MySVN_Copy}/LAL/configuration;svn update;cp darwin.csh auger5_rh93_gcc332.csh lx1_rh72_gcc332.csh ${HOME}/.; cp dot.tcshrc ${HOME}/.tcshrc;tcsh"

alias SVN_configurationPut "cd ${MySVN_Copy}/LAL/configuration;cp ${HOME}/darwin.csh ${HOME}/auger5_rh93_gcc332.csh ${HOME}/lx1_rh72_gcc332.csh .;cp ${HOME}/.tcshrc dot.tcshrc;svn status -u;svn diff; svn commit --message ''"
alias ldd "otool -L"
alias mallocDebug "open /Developer/Applications/Performance\ Tools/MallocDebug.app/"
alias SVN_OnX_v15update "pwd;cd ~/Work/OpenScientist/v13r0/OnX/v15r0;mkdir ${HOME}/Work/tmp;cp -rf * ${HOME}/Work/tmp/.; cd ${HOME}/Work/tmp; rm -rf Dar*;find . -name '*~' -exec rm {} \;>tit; echo 'cleanup files ok'; find . -name 'CVS' -exec rm -rf {} \;>titi;echo 'cleanup cvs ok';cp -rf * ${MySVN_Copy}/LAL/OpenScientist/OnX/.;cd ${MySVN_Copy}/LAL/OpenScientist/OnX;svn status -u> titi;echo 'svn status -u :\n-------------------------------------------------';more titi"
alias SVN_Recover "cd /Users/Shared/ ; sudo svnadmin recover SVN ; sudo chmod -R o+w SVN"
alias CVS_saveAll "tar -czvf ~/Work/To_CVS/SVN.tgz /Users/Shared/SVN;cd ~/Work/To_CVS/;cvs commit -m "" SVN.tgz"
echo "Setup Darwin ...";

setenv DISPLAY localhost:0.0
