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 @ 10286

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

Add bash script to download a clean developpement environment, should be useful for developers
It will download a part of the new repository organisation (/NEMO) with the required layout (branches, releases and trunk) but mostly empty, only the trunk and the last release will really be downloaded.
Advantages:

  • Possibility to work offline like git: create a dev branch by copying the trunk and start coding without a first commit to the repository
  • Simple SVN commands without tedious svn+ssh scheme
  • Put an end at the scattering of working copies with all local developpements in one place
File size: 706 bytes
Line 
1#!/bin/bash
2
3## Create a void development directory with 1st level folders: 'trunk', 'branches' and 'releases'
4svn co --depth immediates http://forge.ipsl.jussieu.fr/nemo/svn/NEMO NEMO_dev
5
6## Switch from user to developer role if ID is provided
7if [ -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
11fi
12
13cd NEMO_dev
14
15## Get the 1st level tree under 'branches' and 'releases'
16svn up --set-depth immediates branches releases
17
18## Download the trunk and last release, the same procedure can be used for any sub-content
19svn up --set-depth infinity   trunk    releases/release-3.6
20
21cd ..
22
23exit 0
Note: See TracBrowser for help on using the repository browser.