source: XMLIO_V2/tools/install_xmlio_server @ 84

Last change on this file since 84 was 84, checked in by ymipsl, 15 years ago

modif procedure d'installation

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