source: XMLIO_V2/tools/install_xmlio_server @ 83

Last change on this file since 83 was 83, checked in by ymipsl, 11 years ago

ajout script d'installation

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/bash
2
3set -x
4
5user_defined="FALSE"
6branch_defined="FALSE"
7arch_defined="FALSE"
8
9while (($# > 0))
10  do
11  case $1 in
12      "-h") cat <<fin
13Usage :
14makegcm [options] -m arch exec
15[-h]                       : help
16[ -user name]    : user name from svn repository
17[ -branch branch] : select branch from svn repository .
18[ -arch nom_arch  ]    : nom de l\'architecture cible
19fin
20          exit;;
21
22      "-user")
23          user=$2 ; user_defined="TRUE" ; shift ; shift ;;
24
25      "-branch")
26          branch=$2 ; branch_defined="TRUE" ; shift ; shift ;;
27
28      "-arch")
29          arch=$2 ; arch_defined="TRUE"; shift ; shift ;;
30
31      *)
32          echo "$1 : bad option => exiting..." ; exit 1   ;;
33  esac
34done
35
36if [[ $user_defined == "FALSE" ]]
37then
38  echo "No user defined, using svn by http..."
39  connect="http://forge.ipsl.jussieu.fr/ioserver/svn/XMLIO_V2"
40else
41  connect="svn+ssh://${user}@forge.ipsl.jussieu.fr/ipsl/forge/projets/ioserver/svn/XMLIO_V2"
42fi
43
44if [[ $branch_defined == "FALSE" ]]
45then
46  branch="trunk"
47fi
48
49svn co ${connect}/${branch} xmlioserver
50svn co ${connect}/external external
51svn co ${connect}/tools tools
52#svn co ${connect}/make_xmlioserver .
53
54
55if [[ arch_defined == "TRUE" ]]
56then
57  ./make_xmlioserver -arch $arch
58fi
Note: See TracBrowser for help on using the repository browser.