Setup script

From ATLAS-TRIUMF

Jump to: navigation, search
#!/usr/local/bin/zsh
 
release=10.4.0
 
echo "Setting up release ${release}"
 
workdir=${HOME}/AthenaWork/${release}
mkdir -p $workdir
 
echo Working directory is $workdir
 
if [ $# != 0 ] ; then
  echo "Script accepts no parameters"
  exit
fi
 
if [ ! -f ${ATLAS_RELEASE_PATH}/setup.sh ]; then
  echo "Dont see top level pacman setup.sh in ${ATLAS_RELEASE_PATH}"
  exit
fi
 
echo "now source /data/AtlasReleaseArea/setup.sh..."
source ${ATLAS_RELEASE_PATH}/setup.sh
 
export CMTPATH=$workdir:$CMTPATH
 
echo "now source dist/release/Control/AthenaRunTime/*/cmt/setup.sh"
source  ${ATLAS_RELEASE_PATH}/dist/$release/Control/AthenaRunTime/*/cmt/setup.sh
# if GeoModelDisplay checked out:
#echo "now the setup for v-atlas..."
#source  $workdir/AtlasGeometryCommon/GeoModelDisplay/GeoModelDisplay-*/cmt/setup.sh
#echo "using checked out version of GeoModelDisplay for v-atlas scripts"
 
# if working from release:
source  ${ATLAS_RELEASE_PATH}/dist/$release/AtlasGeometryCommon/GeoModelDisplay/GeoModelDisplay-*/cmt/setup.sh
echo "using release version of GeoModelDisplay for v-atlas scripts"
 
if [[ -z $AFSUSERNAME ]] ; then
  echo "Setting AFSUSERNAME to ${USERNAME}"
  export AFSUSERNAME=${USERNAME}
fi
 
echo "Setting up CVS access via ssh"
export CVSROOT=":ext:${AFSUSERNAME}@atlas-sw.cern.ch:/atlascvs"
export CVS_RSH="ssh"
 
echo CVSROOT is:
echo $CVSROOT
echo "and CVS_RSH is (should be ssh):"
Personal tools