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.
Ffetch_extdir.sh in branches/2014/dev_r4704_NOC5_MPP_BDY_UPDATE/NEMOGCM/TOOLS/COMPILE – NEMO

source: branches/2014/dev_r4704_NOC5_MPP_BDY_UPDATE/NEMOGCM/TOOLS/COMPILE/Ffetch_extdir.sh @ 6225

Last change on this file since 6225 was 6225, checked in by jamesharle, 8 years ago

Update MPP_BDY_UPDATE branch to be consistent with head of trunk

  • 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.