New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 10334 – NEMO

Changeset 10334


Ignore:
Timestamp:
2018-11-19T15:16:47+01:00 (6 years ago)
Author:
nicolasmartin
Message:

Add the possibility to replicate the repository layout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/install_dev_env.sh

    r10287 r10334  
    11#!/bin/bash 
    22 
    3 ## Create a void development directory with 1st level folders: 'trunk', 'branches' and 'releases' 
    4 svn co --depth immediates http://forge.ipsl.jussieu.fr/nemo/svn/NEMO NEMO_dev 
     3## Create minimal developement environment for NEMO 
     4################################################### 
    55 
    6 ## Switch from user to developer role if ID is provided 
     6## Optional arguments 
     7## - $1: developer ID 
     8## - $2: 'repo' to replicate the layout of whole repository 
     9 
     10dir='NEMO_dev' 
     11if [ "$2" == 'repo' ]; then root=''; else root='NEMO'; fi 
     12 
     13## Copy of the repository with empty root directories 
     14svn co --depth immediates http://forge.ipsl.jussieu.fr/nemo/svn/$root $dir 
     15 
     16## Switch to developer role if ID is provided 
    717if [ -n "$1" ]; then 
    8    svn sw --relocate    http://forge.ipsl.jussieu.fr                       \ 
    9                      svn+ssh://$1@forge.ipsl.jussieu.fr/ipsl/forge/projets \ 
    10       NEMO_dev 
     18    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 \ 
     21   NEMO_dev 
    1122fi 
    1223 
    13 cd NEMO_dev 
     24if [ "$2" == 'repo' ]; then 
     25    svn up --set-depth immediates $dir/utils $dir/vendors 
     26    dir=$dir/'NEMO' 
     27fi 
    1428 
    1529## Get the 1st level tree under 'branches' and 'releases' 
    16 svn up --set-depth immediates branches releases 
     30svn up --set-depth immediates $dir/branches $dir/releases 
    1731 
    18 ## Download the trunk and last release, the same procedure can be used for any sub-content 
    19 svn up --set-depth infinity   trunk    releases/release-3.6 
    20  
    21 cd .. 
     32## Download trunk and last release 
     33svn up --set-depth infinity $dir/trunk 
     34svn up --set-depth infinity $dir/releases/release-3.6 
    2235 
    2336exit 0 
Note: See TracChangeset for help on using the changeset viewer.