Project

General

Profile

novainst-wrap.csh

A Wrapper to the novainst script (csh). - Xinchun Tian, 11/13/2009 02:33 PM

 
1
#!/bin/tcsh
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
set rev=$1; shift
9

    
10
if ( -f "novainst" ) then
11
    rm -fr novainst
12
endif
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
    endif
24
endif
25