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.
install_dev_env.sh in utils – NEMO

source: utils/install_dev_env.sh @ 10449

Last change on this file since 10449 was 10334, checked in by nicolasmartin, 5 years ago

Add the possibility to replicate the repository layout

  • Property svn:executable set to *
File size: 1.0 KB
RevLine 
[10286]1#!/bin/bash
2
[10334]3## Create minimal developement environment for NEMO
4###################################################
[10286]5
[10334]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
[10286]17if [ -n "$1" ]; then
[10334]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
[10286]22fi
23
[10334]24if [ "$2" == 'repo' ]; then
25    svn up --set-depth immediates $dir/utils $dir/vendors
26    dir=$dir/'NEMO'
27fi
[10286]28
29## Get the 1st level tree under 'branches' and 'releases'
[10334]30svn up --set-depth immediates $dir/branches $dir/releases
[10286]31
[10334]32## Download trunk and last release
33svn up --set-depth infinity $dir/trunk
34svn up --set-depth infinity $dir/releases/release-3.6
[10286]35
36exit 0
Note: See TracBrowser for help on using the repository browser.