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 | |
---|
3 | user_defined="FALSE" |
---|
4 | branch_defined="FALSE" |
---|
5 | arch_defined="FALSE" |
---|
6 | |
---|
7 | while (($# > 0)) |
---|
8 | do |
---|
9 | case $1 in |
---|
10 | "-h") cat <<fin |
---|
11 | Usage : |
---|
12 | makegcm [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 |
---|
17 | fin |
---|
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 |
---|
32 | done |
---|
33 | |
---|
34 | if [[ $user_defined == "FALSE" ]] |
---|
35 | then |
---|
36 | echo "No user defined, using svn by http..." |
---|
37 | connect="http://forge.ipsl.jussieu.fr/ioserver/svn/XMLIO_V2" |
---|
38 | else |
---|
39 | connect="svn+ssh://${user}@forge.ipsl.jussieu.fr/ipsl/forge/projets/ioserver/svn/XMLIO_V2" |
---|
40 | fi |
---|
41 | |
---|
42 | if [[ $branch_defined == "FALSE" ]] |
---|
43 | then |
---|
44 | branch="trunk" |
---|
45 | fi |
---|
46 | |
---|
47 | svn co ${connect}/${branch} xmlioserver |
---|
48 | svn co ${connect}/external external |
---|
49 | svn co ${connect}/tools tools |
---|
50 | cp tools/make_xmlioserver . |
---|
51 | |
---|
52 | |
---|
53 | if [[ $arch_defined == "TRUE" ]] |
---|
54 | then |
---|
55 | ./make_xmlioserver -arch $arch |
---|
56 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.