source: TI03-DataExtractor/branches/titania_install/bin/svnTitaniaDXGS.sh @ 1709

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI03-DataExtractor/branches/titania_install/bin/svnTitaniaDXGS.sh@1709
Revision 1709, 1.0 KB checked in by astephen, 14 years ago (diff)

Latest titania bundle.

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3# svnTitaniaDXGS.sh
4# SVN branch of installed stuff
5
6d=/usr/local/badc/linux/suse10
7svnsrc=/usr/local/badc/linux/suse10/src/for_svn
8sp=$d/cdat/lib/python2.4/site-packages
9copydir=$svnsrc/latest
10
11if [ ! $1 ]; then
12    echo "Copying stuff to $copydir ..."
13
14    rm -fr $copydir/*
15    mkdir $copydir/cgi
16
17    cp -r $sp/py[dg][sx][sc] $copydir/
18    cp -r $d/[dg][sx][sc] $copydir/
19
20    rm -fr $copydir/[dg][sx][sc]/runLogs
21    rm -fr $copydir/[dg][sx][sc]/sessionObjects
22    rm -fr $copydir/[dg][sx][sc]/running
23
24    cp -r $d/bin $copydir/
25
26    rm $copydir/bin/subset* $copydir/bin/grib*
27
28    cp /srv/www/cgi-bin/dxui*py $copydir/cgi/
29    cp /srv/www/cgi-bin/splatui*py $copydir/cgi/
30fi
31
32echo "Getting latest svn branch..."
33
34export SROOT=svn+ssh://astephen@glue.badc.rl.ac.uk/ndgsvn
35export SVN_EDITOR=/usr/bin/vi
36
37cd $svnsrc
38svn co $SROOT/TI03-DataExtractor/branches/titania_install
39
40cp -r $copydir/* titania_install/
41
42t="titania_install" ; svn add $t/* $t/*/* $t/*/*/* $t/*/*/*/* $t/*/*/*/*/* $t/*/*/*/*/*/* $t/*/*/*/*/*/*/*
43
44cd $t
45svn commit
46
47echo "All done..."
Note: See TracBrowser for help on using the repository browser.