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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
#set -x
set -o posix
#set -u
#set -e
#+
#
# ===============
# Fmake_config.sh
# ===============
#
# ---------------
# Make the config
# ---------------
#
# SYNOPSIS
# ========
#
# ::
#
# $ Fmake_config.sh
#
#
# DESCRIPTION
# ===========
#
#
# - Make the config directory
# - Create repositories needed :
#
# - EXP00 for namelist
# - MY_SRC for user sources
# - BLD for compilation
#
# EXAMPLES
# ========
#
# ::
#
# $ ./Fmake_config.sh CONFIG_NAME REF_CONFIG_NAME
#
#
# TODO
# ====
#
# option debug
#
#
# EVOLUTIONS
# ==========
#
# $Id: Fmake_config.sh 9719 2018-05-31 15:57:27Z nicolasmartin $
#
#
#
# * creation
#
#-
\mkdir -p ${1}
\mkdir -p ${1}/EXP00
\mkdir -p ${1}/MY_SRC
\cp -R -n ${2}/cpp_${2}.fcm ${1}/cpp_${1}.fcm
\cp -R -n ${2}/EXPREF/*namelist* ${1}/EXP00/.
\cp -R -n ${2}/EXPREF/*.xml ${1}/EXP00/.
[ -f ${2}/EXPREF/AGRIF_FixedGrids.in ] && \cp -R -n ${2}/EXPREF/AGRIF_FixedGrids.in ${1}/EXP00/.
[ -d ${2}/MY_SRC ] && \cp -n ${2}/MY_SRC/* ${1}/MY_SRC/. 2> /dev/null