Project

General

Profile

setup_nova_fnal.sh

Xinchun Tian, 11/04/2009 04:15 PM

 
1
#!/bin/bash
2

    
3
function setup_cmtnova(){
4
#
5
# NOVAHOME
6
#
7
    if [ -z "$NOVAHOME" ] ; then
8
	export NOVAHOME=/nas-pool/e929/users/tianxc/nova
9
    fi
10
#
11
# NOVASVN
12
#
13
    if [ -z "$NOVASVN" ] ; then
14
	export NOVASVN=svn+ssh://p-nova@cdcvs.fnal.gov/cvs/projects/nova
15
    fi
16
    
17
# The NOVA release could be configured for analysis in the following line  
18
    if [ -z "$1" ]; then
19
	export NOVA_RELEASE=nova-trunk
20
    else
21
	export NOVA_RELEASE=$1
22
	shift
23
    fi
24
    
25
    pushd $NOVAHOME/$NOVA_RELEASE >/dev/null 
26
    source setup.sh
27
    popd >/dev/null
28
    pushd $NOVAHOME/$NOVA_RELEASE/novafmwk/novaRelease/cmt >/dev/null
29
    source setup.sh
30
    popd >/dev/null
31
    
32
    unset NOVA_RELEASE
33
}