source: branches/NERC/dev_r5518_GO6_CO2_cmip/NEMOGCM/TOOLS/COMPILE/Ffetch_extdir.sh @ 9298

Last change on this file since 9298 was 4990, checked in by timgraham, 6 years ago

Merged branches/2014/dev_MERGE_2014 back onto the trunk as follows:

In the working copy of branch ran:
svn merge svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk@HEAD
1 conflict in LIM_SRC_3/limdiahsb.F90
Resolved by keeping the version from dev_MERGE_2014 branch
and commited at r4989

In working copy run:
svn switch svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk
to switch working copy

Run:
svn merge —reintegrate svn+ssh://forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/branches/2014/dev_MERGE_2014
to merge the branch into the trunk - no conflicts at this stage.

  • Property svn:executable set to *
File size: 896 bytes
Line 
1#!/bin/bash
2#set -x
3set -o posix
4#set -u
5#set -e
6#+
7# ===============
8# Ffetch_extdir.sh
9# ===============
10# ---------------
11# Make the config
12# ---------------
13# SYNOPSIS
14# ========
15# ::
16#  $ Ffetch_extdir.sh
17# DESCRIPTION
18# ===========
19# - Make the config directory
20# - Create repositories needed :
21
22#  - EXP00 for namelist
23#  - MY_SRC for user sources
24#  - BLD for compilation
25# EXAMPLES
26# ========
27# ::
28#  $ ./Ffetch_extdir.sh CONFIG_NAME REMOTE_CTL
29# TODO
30# ====
31# option debug
32# EVOLUTIONS
33# ==========
34# $Id: Ffetch_extdir.sh 3715 2012-11-28 16:06:02Z acc $
35#   * creation
36#-
37basedir=$(pwd)
38cd ${1}
39wget ${2} -O remote_file.list
40#
41if [ -f remote_file.list ] ; then
42 cat remote_file.list | grep -v '^#' |
43  while
44   read remfile locfile
45   do
46    if [ $remfile == 'create_directory' ] ;then
47      mkdir $locfile
48    else
49      wget $remfile -O $locfile
50    fi
51   done
52fi
53cd $basedir
Note: See TracBrowser for help on using the repository browser.