source:
utils/install_dev_env.sh
@
10632
Last change on this file since 10632 was 10334, checked in by nicolasmartin, 6 years ago | |
---|---|
|
|
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 | |
10 | dir='NEMO_dev' |
11 | if [ "$2" == 'repo' ]; then root=''; else root='NEMO'; fi |
12 | |
13 | ## Copy of the repository with empty root directories |
14 | svn co --depth immediates http://forge.ipsl.jussieu.fr/nemo/svn/$root $dir |
15 | |
16 | ## Switch to developer role if ID is provided |
17 | if [ -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 |
22 | fi |
23 | |
24 | if [ "$2" == 'repo' ]; then |
25 | svn up --set-depth immediates $dir/utils $dir/vendors |
26 | dir=$dir/'NEMO' |
27 | fi |
28 | |
29 | ## Get the 1st level tree under 'branches' and 'releases' |
30 | svn up --set-depth immediates $dir/branches $dir/releases |
31 | |
32 | ## Download trunk and last release |
33 | svn up --set-depth infinity $dir/trunk |
34 | svn up --set-depth infinity $dir/releases/release-3.6 |
35 | |
36 | exit 0 |
Note: See TracBrowser
for help on using the repository browser.