source: vendors/update_EXTERNAL_XMLIO_SERVER.sh @ 1984

Last change on this file since 1984 was 1984, checked in by flavoni, 11 years ago

commit scripts for EXTERNAL update, see ticket #685

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#!/bin/bash
2# N.B. run this script on vendors directory!!!
3
4set -x
5
6last_version=$1
7new_version=$2
8name=$3
9
10#- My projet url
11svn_repo_url=svn+ssh://$name@forge.ipsl.jussieu.fr/ipsl/forge/projets/mentor/svn/
12
13#- EXTERNAL directory in which we want to merge vendors
14svn_external=svn+ssh://$name@forge.ipsl.jussieu.fr/ipsl/forge/projets/mentor/svn/trunk/NEMOGCM/EXTERNAL
15
16#- Vendor branch
17vendor_branch=XMLIO_SERVER
18
19#- Vendor project url
20vendor_url=http://forge.ipsl.jussieu.fr/ioserver/svn/XMLIO_SERVER/trunk
21
22merge=1
23 
24if [ $# -ne 3 ]; then
25       echo "Usage: $0 old_version new_version user"
26       exit 1
27fi
28 
29[ ! -d tmp_update_nemo ] && mkdir tmp_update_${vendor_branch}
30tmp_dir=tmp_update_${vendor_branch}
31cd $tmp_dir
32
33svn export -r $new_version  $vendor_url  r_$new_version
34
35/sw/share/svn/contrib/client-side/svn_load_dirs/svn_load_dirs.pl $svn_repo_url/vendors/$vendor_branch -t r_$new_version current r_$new_version
36
37echo "Downloading and extracting XMLIO_SERVER from trunk/NEMOGCM/EXTERNAL"
38svn co $svn_external/XMLIO_SERVER
39
40
41if [ $merge == '1' ]; then
42    svn merge "$svn_repo_url/vendors/$vendor_branch/r_$last_version" "$svn_repo_url/vendors/$vendor_branch/current" XMLIO_SERVER   
43fi
44
45## NOTE : after a merge we have conflicts
46## to resole them it is necessary to do, for example : svn resolved XMLIO_SERVER/directory with conflits
47
48## NOTE : if you have a good merge then you have to committ:
49## cd $tmp_dir/$vendor_branch
50## svn status ../XMLIO_SERVER/
51## svn ci --username $name --message "merge XMLIO_SERVER version $new_version_name"
52
53exit 0
Note: See TracBrowser for help on using the repository browser.