source: tools/Scripts/Logon @ 148

Last change on this file since 148 was 148, checked in by ogrimm, 11 years ago
Changes to Logon script
File size: 884 bytes
Line 
1#!/bin/bash
2
3# This script should be sourced in .bashrc
4
5export DIM_DNS_NODE=ihp-pc26.ethz.ch
6export DIM_HOST_NODE=$HOST.ethz.ch
7export DIMDIR=/usr/local/dim_v19r9/
8
9export LD_LIBRARY_PATH=/usr/local/qwt-5.2.0/lib:$DIMDIR/linux:$LD_LIBRARY_PATH
10export PATH=$DIMDIR/linux:/home/daqct3/fact_repos.svn/tools/Scripts:/usr/local/Trolltech/Qt-4.4.3/bin:.:$PATH
11
12# Check if repository is a mixed or locally modified version (only for login shell))
13# The revision warning is given only once at login.
14
15if  [[ "${USER}" == "daqct3" ]]; then
16if shopt -q login_shell; then
17if [[ `svnversion fact_repos* -n` =~ [:M] ]]
18  then
19    xterm -e "echo 'Warning: fact_repos.svn does not have a single revision number';
20    echo 'Make an update before starting a run!';
21    echo 'Contact O.Grimm, T.Kraehenbuehl, or Q.Weitzel in case you need help';
22    echo 'Hit return to continue';
23    read;"
24fi
25fi
26fi
Note: See TracBrowser for help on using the repository browser.