source: fact/tools/Scripts/Logon@ 10911

Last change on this file since 10911 was 10118, checked in by ogrimm, 14 years ago
Adapted various programs to new PixelMap class
File size: 1.1 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
9if [ -z "$QWTDIR" ]; then export QWTDIR=/usr/local/qwt/; fi
10if [ -z "$QTDIR" ]; then export QTDIR=/usr/local/Trolltech/Qt-4.6.2; fi
11
12export LD_LIBRARY_PATH=$QWTDIR/lib:$DIMDIR/linux:$LD_LIBRARY_PATH
13export PATH=$DIMDIR/linux:$REPOS_DIR/tools/Scripts:$QTDIR/bin:.:$PATH
14
15# Check if repository is a mixed or locally modified version (only for login shell))
16# The revision warning is given only once at login.
17
18if [ "${USER}" = "daqct3" ]; then
19#if shopt -q login_shell; then
20if [[ `svnversion $REPOS_DIR/drsdaq -n` == *:* ]] || [[ `svnversion $REPOS_DIR/drsdaq -n` == *M ]]; then
21 xterm -e "echo 'Warning: drsdaq in repository does not have a single revision number';
22 echo 'Make an update before starting a run!';
23 echo 'Contact O.Grimm or Q.Weitzel in case you need help';
24 echo 'Hit return to continue';
25 read;"
26#fi
27fi
28fi
Note: See TracBrowser for help on using the repository browser.