Changeset 194 for tools


Ignore:
Timestamp:
03/31/10 12:35:16 (15 years ago)
Author:
ogrimm
Message:
Update to Logon script
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/Scripts/Logon

    r170 r194  
    11#!/bin/bash
    22
    3 # This script should be sourced in .bashrc
     3# This script should be sourced at log on (e.g. in .bashrc)
    44
    5 export DIM_DNS_NODE=ihp-pc1.ethz.ch
     5export REPOS_DIR=$(cd "${0%/*}/../.." 2>/dev/null; echo "$PWD")
     6if [ -z "$DIM_DNS_NODE" ]; then export DIM_DNS_NODE=ihp-pc1.ethz.ch; fi
    67export DIM_HOST_NODE=$HOST.ethz.ch
    7 export DIMDIR=/usr/local/dim_v19r9/
     8if [ -z "$DIMDIR" ]; then export DIMDIR=/usr/local/dim/; fi
    89
    910export LD_LIBRARY_PATH=/usr/local/qwt-5.2.0/lib:$DIMDIR/linux:$LD_LIBRARY_PATH
    10 export PATH=$DIMDIR/linux:/home/daqct3/fact_repos.svn/tools/Scripts:/usr/local/Trolltech/Qt-4.4.3/bin:.:$PATH
     11export PATH=$DIMDIR/linux:$REPOS_DIR/tools/Scripts:/usr/local/Trolltech/Qt-4.4.3/bin:.:$PATH
    1112
    1213echo
    13 echo Note: hvcontrol needs Evidence configuration server running on $DIM_DNS_NODE
     14echo Note: Operation needs Evidence configuration server running on $DIM_DNS_NODE
    1415echo "To start, log on as user 'daqct3' and execute 'start' script"
    15 echo Contact: Oliver Grimm, 32192
     16echo "Contact: Oliver Grimm (32192) or Quirin Weitzel (33973)"
    1617echo
    1718
     
    1920# The revision warning is given only once at login.
    2021
    21 if  [[ "${USER}" == "daqct3" ]]; then
    22 if shopt -q login_shell; then
    23 if [[ `svnversion fact_repos*/drsdaq -n` =~ [:M] ]]
    24   then
     22if [ "${USER}" = "daqct3" ]; then
     23#if shopt -q login_shell; then
     24if [[ `svnversion $REPOS_DIR/drsdaq -n` == *:* ]] || [[ `svnversion $REPOS_DIR/drsdaq -n` == *M ]]; then
    2525    xterm -e "echo 'Warning: drsdaq in repository does not have a single revision number';
    2626    echo 'Make an update before starting a run!';
    27     echo 'Contact O.Grimm, T.Kraehenbuehl, or Q.Weitzel in case you need help';
     27    echo 'Contact O.Grimm or Q.Weitzel in case you need help';
    2828    echo 'Hit return to continue';
    2929    read;"
     30#fi
    3031fi
    3132fi
    32 fi
Note: See TracChangeset for help on using the changeset viewer.