source: tools/Scripts/Logon@ 225

Last change on this file since 225 was 195, checked in by daqct3, 14 years ago
Logon script takes repository location as parameter
File size: 1.2 KB
Line 
1#!/bin/bash
2
3# This script should be sourced at log on (e.g. in .bashrc)
4
5export REPOS_DIR=$1
6if [ -z "$DIM_DNS_NODE" ]; then export DIM_DNS_NODE=ihp-pc1.ethz.ch; fi
7export DIM_HOST_NODE=$HOST.ethz.ch
8if [ -z "$DIMDIR" ]; then export DIMDIR=/usr/local/dim/; fi
9
10export LD_LIBRARY_PATH=/usr/local/qwt-5.2.0/lib:$DIMDIR/linux:$LD_LIBRARY_PATH
11export PATH=$DIMDIR/linux:$REPOS_DIR/tools/Scripts:/usr/local/Trolltech/Qt-4.4.3/bin:.:$PATH
12
13echo
14echo Note: Operation needs Evidence configuration server running on $DIM_DNS_NODE
15echo "To start, log on as user 'daqct3' and execute 'start' script"
16echo "Contact: Oliver Grimm (32192) or Quirin Weitzel (33973)"
17echo
18
19# Check if repository is a mixed or locally modified version (only for login shell))
20# The revision warning is given only once at login.
21
22if [ "${USER}" = "daqct3" ]; then
23#if shopt -q login_shell; then
24if [[ `svnversion $REPOS_DIR/drsdaq -n` == *:* ]] || [[ `svnversion $REPOS_DIR/drsdaq -n` == *M ]]; then
25 xterm -e "echo 'Warning: drsdaq in repository does not have a single revision number';
26 echo 'Make an update before starting a run!';
27 echo 'Contact O.Grimm or Q.Weitzel in case you need help';
28 echo 'Hit return to continue';
29 read;"
30#fi
31fi
32fi
Note: See TracBrowser for help on using the repository browser.