Changeset 10334
- Timestamp:
- 2018-11-19T15:16:47+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/install_dev_env.sh
r10287 r10334 1 1 #!/bin/bash 2 2 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 ################################################### 5 5 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 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 7 17 if [ -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 11 22 fi 12 23 13 cd NEMO_dev 24 if [ "$2" == 'repo' ]; then 25 svn up --set-depth immediates $dir/utils $dir/vendors 26 dir=$dir/'NEMO' 27 fi 14 28 15 29 ## Get the 1st level tree under 'branches' and 'releases' 16 svn up --set-depth immediates branchesreleases30 svn up --set-depth immediates $dir/branches $dir/releases 17 31 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 33 svn up --set-depth infinity $dir/trunk 34 svn up --set-depth infinity $dir/releases/release-3.6 22 35 23 36 exit 0
Note: See TracChangeset
for help on using the changeset viewer.