Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
#set -x
set -o posix
#set -u
#set -e
#+
# ============
# Fcopy_extdir.sh
# ============
# --------------------------
# Copy a reference directory
# --------------------------
# SYNOPSIS
# ========
# ::
# $ Fcopy_extdir.sh
# DESCRIPTION
# ===========
# When an unsupported configuration is requested,
# Prepare sources for the NEMO sub-directories needed (OCE, TOP ...)
# EXAMPLES
# ========
# ::
# $ ./Fcopy_extdir.sh ORCA2_LIM
# TODO
# ====
# option debug
# EVOLUTIONS
# ==========
# $Id: Fcopy_extdir.sh 3294 2012-01-28 16:44:18Z rblod $
# * creation
#-
grep "$1 " ${CONFIG_DIR}/uspcfg.txt > ${CONFIG_DIR}/cfg.tmp
#
LOCAL_REF=$(cat cfg.tmp | awk 'BEGIN {FS = "#" }{print $2}')
TAB=$(cat cfg.tmp | awk 'BEGIN {FS = "#" }{print $3}')
REMOTE_CTL=$(cat cfg.tmp | awk 'BEGIN {FS = "#" }{print $4}')
#
\rm ${CONFIG_DIR}/cfg.tmp