- Timestamp:
- 03/31/10 12:35:16 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/Scripts/Logon
r170 r194 1 1 #!/bin/bash 2 2 3 # This script should be sourced in .bashrc3 # This script should be sourced at log on (e.g. in .bashrc) 4 4 5 export DIM_DNS_NODE=ihp-pc1.ethz.ch 5 export REPOS_DIR=$(cd "${0%/*}/../.." 2>/dev/null; echo "$PWD") 6 if [ -z "$DIM_DNS_NODE" ]; then export DIM_DNS_NODE=ihp-pc1.ethz.ch; fi 6 7 export DIM_HOST_NODE=$HOST.ethz.ch 7 export DIMDIR=/usr/local/dim_v19r9/ 8 if [ -z "$DIMDIR" ]; then export DIMDIR=/usr/local/dim/; fi 8 9 9 10 export 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:.:$PATH11 export PATH=$DIMDIR/linux:$REPOS_DIR/tools/Scripts:/usr/local/Trolltech/Qt-4.4.3/bin:.:$PATH 11 12 12 13 echo 13 echo Note: hvcontrolneeds Evidence configuration server running on $DIM_DNS_NODE14 echo Note: Operation needs Evidence configuration server running on $DIM_DNS_NODE 14 15 echo "To start, log on as user 'daqct3' and execute 'start' script" 15 echo Contact: Oliver Grimm, 3219216 echo "Contact: Oliver Grimm (32192) or Quirin Weitzel (33973)" 16 17 echo 17 18 … … 19 20 # The revision warning is given only once at login. 20 21 21 if [[ "${USER}" == "daqct3" ]]; then 22 if shopt -q login_shell; then 23 if [[ `svnversion fact_repos*/drsdaq -n` =~ [:M] ]] 24 then 22 if [ "${USER}" = "daqct3" ]; then 23 #if shopt -q login_shell; then 24 if [[ `svnversion $REPOS_DIR/drsdaq -n` == *:* ]] || [[ `svnversion $REPOS_DIR/drsdaq -n` == *M ]]; then 25 25 xterm -e "echo 'Warning: drsdaq in repository does not have a single revision number'; 26 26 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'; 28 28 echo 'Hit return to continue'; 29 29 read;" 30 #fi 30 31 fi 31 32 fi 32 fi
Note:
See TracChangeset
for help on using the changeset viewer.