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.
Fcopy_dir.sh in branches/DEV_r1879_FCM/NEMOGCM/TOOLS – NEMO

source: branches/DEV_r1879_FCM/NEMOGCM/TOOLS/Fcopy_dir.sh @ 1972

Last change on this file since 1972 was 1972, checked in by flavoni, 14 years ago

Add TOOLS directory and scripts to compile with FCM, see ticket: #685

  • Property svn:executable set to *
File size: 714 bytes
Line 
1#!/bin/bash
2#set -x
3set -o posix
4#set -u
5#set -e
6#+
7#
8# ============
9# Fcopy_dir.sh
10# ============
11#
12# --------------------------
13# Copy a reference directory
14# --------------------------
15#
16# SYNOPSIS
17# ========
18#
19# ::
20#
21#  $ Fcopy_dir.sh
22#
23#
24# DESCRIPTION
25# ===========
26#
27#
28# When a refenrence configuration is set,
29# Copy NEMO sub-directories needed
30#
31# EXAMPLES
32# ========
33#
34# ::
35#
36#  $ ./Fcopy_dir.sh REF_DIR
37#
38#
39# TODO
40# ====
41#
42# option debug
43#
44#
45# EVOLUTIONS
46# ==========
47#
48# $Id$
49#
50#
51# - rblod 2010-06-20T16:11:47Z
52#
53#   * creation
54#
55#-
56
57declare -a ZTAB
58grep "$1 " ${TOOLS_DIR}/cfg.txt > ${TOOLS_DIR}/cfg.tmp
59read -a ZTAB < ${TOOLS_DIR}/cfg.tmp
60TAB=( ${ZTAB[@]:1} )
61\rm ${TOOLS_DIR}/cfg.tmp
62
63unset -v ZTAB
Note: See TracBrowser for help on using the repository browser.