Ignore:
Timestamp:
07/13/11 07:36:09 (13 years ago)
Author:
ogrimm
Message:
Logon script finds its own directory, updated 'updateall' script
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/Scripts/Logon

    r10913 r11367  
    11#!/bin/bash
    2 
    32# This script should be sourced at log on (e.g. in .bashrc)
    43
    5 export REPOS_DIR=$1
     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
    610if [ -z "$DIM_DNS_NODE" ]; then export DIM_DNS_NODE=ihp-pc1.ethz.ch; fi
    7 export DIM_HOST_NODE=$HOST.ethz.ch
     11if [ -z "$DIM_HOST_NODE" ]; then export DIM_HOST_NODE=`hostname`.ethz.ch; fi
    812if [ -z "$DIMDIR" ]; then export DIMDIR=/usr/local/dim/; fi
    913if [ -z "$QWTDIR" ]; then export QWTDIR=/usr/local/qwt/; fi
    1014if [ -z "$QTDIR" ]; then export QTDIR=/usr/local/Trolltech/Qt-4.6.2; fi
    1115
     16#Set paths
    1217export LD_LIBRARY_PATH=$QWTDIR/lib:$DIMDIR/linux:$LD_LIBRARY_PATH
    13 export PATH=$DIMDIR/linux:$REPOS_DIR/tools/Scripts:$QTDIR/bin:.:$PATH
     18export PATH=$DIMDIR/linux:$SCRIPTPATH:$SCRIPTPATH/../Edd:$PATH
     19export PATH=.:$SCRIPTPATH/../../FADctrl:$QTDIR/bin:$PATH
Note: See TracChangeset for help on using the changeset viewer.