source: fact/tools/Scripts/Logon@ 11367

Last change on this file since 11367 was 11367, checked in by ogrimm, 13 years ago
Logon script finds its own directory, updated 'updateall' script
File size: 760 bytes
Line 
1#!/bin/bash
2# This script should be sourced at log on (e.g. in .bashrc)
3
4# Determine absolute path of this script
5pushd `dirname $0` >/dev/null
6SCRIPTPATH=`pwd`
7popd >/dev/null
8
9# Set environment variables if not yet set
10if [ -z "$DIM_DNS_NODE" ]; then export DIM_DNS_NODE=ihp-pc1.ethz.ch; fi
11if [ -z "$DIM_HOST_NODE" ]; then export DIM_HOST_NODE=`hostname`.ethz.ch; fi
12if [ -z "$DIMDIR" ]; then export DIMDIR=/usr/local/dim/; fi
13if [ -z "$QWTDIR" ]; then export QWTDIR=/usr/local/qwt/; fi
14if [ -z "$QTDIR" ]; then export QTDIR=/usr/local/Trolltech/Qt-4.6.2; fi
15
16#Set paths
17export LD_LIBRARY_PATH=$QWTDIR/lib:$DIMDIR/linux:$LD_LIBRARY_PATH
18export PATH=$DIMDIR/linux:$SCRIPTPATH:$SCRIPTPATH/../Edd:$PATH
19export PATH=.:$SCRIPTPATH/../../FADctrl:$QTDIR/bin:$PATH
Note: See TracBrowser for help on using the repository browser.