source: utils/install_dev_env.sh @ 10334

Last change on this file since 10334 was 10334, checked in by nicolasmartin, 21 months ago

Add the possibility to replicate the repository layout

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