Changeset 11367


Ignore:
Timestamp:
07/13/11 07:36:09 (13 years ago)
Author:
ogrimm
Message:
Logon script finds its own directory, updated 'updateall' script
Location:
fact/tools/Scripts
Files:
4 deleted
2 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
  • fact/tools/Scripts/updateall

    r119 r11367  
    11#!/bin/bash
    2 
    32# Script to update the fact repository and make all programs
    43
    5 pushd ~/fact_repos.svn >/dev/null
     4pushd ~/fact_repos >/dev/null
    65
    76echo -n "Hit enter to update the repository"
     
    98svn update
    109
    11 echo -n "Hit enter to make drsdaq"
     10echo -n "Hit enter to make FADctrl"
    1211read
    13 make -C drsdaq clean
    14 make -C drsdaq
     12make -C FADctrl clean
     13make -C FADctrl
    1514
    16 echo -n "Hit enter to make hvcontrol"
     15echo -n "Hit enter to make BIASctrl"
    1716read
    18 make -C hvcontrol clean
    19 make -C hvcontrol
     17make -C BIASctrl clean
     18make -C BIASctrl
    2019
    21 echo -n "Hit enter to make ddd"
     20echo -n "Hit enter to make FSCctrl"
    2221read
    23 cd tools/ddd
     22make -C BIASctrl clean
     23make -C BIASctrl
     24
     25echo -n "Hit enter to make Feedback"
     26read
     27make -C Feedback clean
     28make -C Feedback
     29
     30echo -n "Hit enter to make Edd"
     31read
     32cd tools/Edd
    2433make clean
    2534qmake
Note: See TracChangeset for help on using the changeset viewer.