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