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