Project

General

Profile

novainst-wrap.sh

A Wrapper to the novainst script. - Xinchun Tian, 11/13/2009 09:23 AM

 
1
#!/bin/bash
2

    
3
## A simple wrapper to the novainst to download novainst and install the software.
4
## The arguments are the same as novainst
5
## tianxc@fnal.gov
6
## Nov. 13, 2009
7

    
8
rev=$1; shift
9

    
10
if [ -f "novainst" ]; then
11
    rm -fr novainst
12
fi
13

    
14
if [ -x "`which svn 2 > /dev/null`" ]; then
15
    echo "No svn available, install in first."
16
else
17
    if [ "$rev" == "trunk" ]; then
18
	svn export svn+ssh://p-nova@cdcvs.fnal.gov/cvs/projects/nova/installation/trunk/novainst/novainst
19
	./novainst $rev $@
20
    else 
21
	svn export svn+ssh://p-nova@cdcvs.fnal.gov/cvs/projects/nova/installation/tags/$rev/novainst/novainst
22
	./novainst $rev $@
23
    fi
24
fi
25