Ignore:
Timestamp:
2019-02-08T21:17:34+01:00 (2 years ago)
Author:
nicolasmartin
Message:

Updating of dev. guide + review of install_dev_env.sh to be a bit more specific in its checkout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/dev/install_dev_env.sh

    r10637 r10655  
    99 
    1010dir='NEMO_dev' 
    11 if [ "$2" == 'repo' ]; then root=''; else root='NEMO'; fi 
     11 
     12if [ "$2" == 'repo' ]; then root='/'; else root='/NEMO'; fi 
    1213 
    1314## Copy of the repository with empty root directories 
    14 svn co --depth immediates http://forge.ipsl.jussieu.fr/nemo/svn/$root $dir 
     15echo 'Checkout the repository from' $root 
     16svn co --depth empty http://forge.ipsl.jussieu.fr/nemo/svn/$root $dir 
     17echo 
    1518 
    1619## Switch to developer role if ID is provided 
    1720if [ -n "$1" ]; then 
     21    echo 'Switch from user to developer role (http:// => svn+ssh://)' 
    1822    ssh-copy-id -i ~/.ssh/id_rsa.pub $1@forge.ipsl.jussieu.fr 2> /dev/null 
    19     svn sw --relocate http://forge.ipsl.jussieu.fr            \ 
    20    svn+ssh://$1@forge.ipsl.jussieu.fr/ipsl/forge/projets \ 
     23    svn sw --relocate    http://forge.ipsl.jussieu.fr                       \ 
     24                 svn+ssh://$1@forge.ipsl.jussieu.fr/ipsl/forge/projets \ 
    2125   NEMO_dev 
     26    echo 
    2227fi 
    2328 
    2429if [ "$2" == 'repo' ]; then 
    25     svn up --set-depth immediates $dir/utils $dir/vendors 
     30    echo "With 'repo' arg, create a lightweight copy of the repository" 
     31    echo "for the developement of the sources used as 'externals'" 
     32 
     33    for item in utils/build/{arch,makenemo,mk} utils/tools       \ 
     34      vendors/{AGRIF/dev,AGRIF/release-4.0,FCM,IOIPSL}  ; do 
     35#     vendors/{AGRIF/dev,AGRIF/stable,FCM,IOIPSL}  ; do 
     36   echo '¤' $item 
     37   svn up -q --parents $dir/$item 
     38    done 
     39    
    2640    dir=$dir/'NEMO' 
     41    echo 
    2742fi 
    2843 
    2944## Get the 1st level tree under 'branches' and 'releases' 
    30 svn up --set-depth immediates $dir/branches $dir/releases 
     45echo "Get empty development folders under '/NEMO/branches':" {UKMO,2018,2019} 
     46svn up -q --set-depth empty --parents $dir/branches/{UKMO,2018,2019} 
     47echo 
    3148 
    3249## Download trunk and last release 
    33 svn up --set-depth infinity $dir/trunk 
    34 svn up --set-depth infinity $dir/releases/release-3.6 
     50echo 'Full download of 2 main branches' 
     51echo "¤ '/NEMO/trunk'" 
     52svn up -q           $dir/trunk 
     53 
     54echo "¤ latest in '/NEMO/releases'" 
     55svn up -q --parents $dir/releases/release-4.0 
    3556 
    3657exit 0 
Note: See TracChangeset for help on using the changeset viewer.