Last change
on this file since 272 was 229, checked in by ogrimm, 14 years ago |
Config requests non-blocking if not made from main thread, adapted all servers to GetConfig() returning std::string, workaround for erroneous SERVICE_LIST
|
File size:
1.2 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 |
|
---|
11 | export LD_LIBRARY_PATH=$QWTDIR/lib:$DIMDIR/linux:$LD_LIBRARY_PATH
|
---|
12 | export PATH=$DIMDIR/linux:$REPOS_DIR/tools/Scripts:/usr/local/Trolltech/Qt-4.4.3/bin:.:$PATH
|
---|
13 |
|
---|
14 | echo
|
---|
15 | echo Note: Operation needs Evidence configuration server running on $DIM_DNS_NODE
|
---|
16 | echo "To start, log on as user 'daqct3' and execute 'start' script"
|
---|
17 | echo "Contact: Oliver Grimm (32192) or Quirin Weitzel (33973)"
|
---|
18 | echo
|
---|
19 |
|
---|
20 | # Check if repository is a mixed or locally modified version (only for login shell))
|
---|
21 | # The revision warning is given only once at login.
|
---|
22 |
|
---|
23 | if [ "${USER}" = "daqct3" ]; then
|
---|
24 | #if shopt -q login_shell; then
|
---|
25 | if [[ `svnversion $REPOS_DIR/drsdaq -n` == *:* ]] || [[ `svnversion $REPOS_DIR/drsdaq -n` == *M ]]; then
|
---|
26 | xterm -e "echo 'Warning: drsdaq in repository does not have a single revision number';
|
---|
27 | echo 'Make an update before starting a run!';
|
---|
28 | echo 'Contact O.Grimm or Q.Weitzel in case you need help';
|
---|
29 | echo 'Hit return to continue';
|
---|
30 | read;"
|
---|
31 | #fi
|
---|
32 | fi
|
---|
33 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.