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.
Fmake_config.sh in branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TOOLS/COMPILE – NEMO

source: branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TOOLS/COMPILE/Fmake_config.sh @ 5453

Last change on this file since 5453 was 3715, checked in by acc, 11 years ago

Branch dev_MERGE_2012. Tidying of iodef files and tools for SETTE.

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1#!/bin/bash
2#set -x
3set -o posix
4#set -u
5#set -e
6#+
7#
8# ===============
9# Fmake_config.sh
10# ===============
11#
12# ---------------
13# Make the config
14# ---------------
15#
16# SYNOPSIS
17# ========
18#
19# ::
20#
21#  $ Fmake_config.sh
22#
23#
24# DESCRIPTION
25# ===========
26#
27#
28# - Make the config directory
29# - Create repositories needed :
30
31#  - EXP00 for namelist
32#  - MY_SRC for user sources
33#  - BLD for compilation
34#
35# EXAMPLES
36# ========
37#
38# ::
39#
40#  $ ./Fmake_config.sh CONFIG_NAME REF_CONFIG_NAME
41#
42#
43# TODO
44# ====
45#
46# option debug
47#
48#
49# EVOLUTIONS
50# ==========
51#
52# $Id$
53#
54#
55#
56#   * creation
57#
58#-
59\mkdir  ${1}
60\mkdir  ${1}/EXP00
61\mkdir  ${1}/MY_SRC
62\cp -R  ${2}/cpp_${2}.fcm ${1}/cpp_${1}.fcm
63\cp -R  ${2}/EXP00/*namelist* ${1}/EXP00/.
64[ -f ${2}/EXP00/AGRIF_FixedGrids.in ] &&  \cp -R  ${2}/EXP00/AGRIF_FixedGrids.in ${1}/EXP00/.
65[ -f ${2}/EXP00/iodef.xml ] &&  \cp -R  ${2}/EXP00/iodef.xml ${1}/EXP00/.
66[ -f ${2}/EXP00/field_def.xml ] &&  \cp -R  ${2}/EXP00/field_def.xml ${1}/EXP00/.
67[ -f ${2}/EXP00/domain_def.xml ] &&  \cp -R  ${2}/EXP00/domain_def.xml ${1}/EXP00/.
68[ -f ${2}/EXP00/xmlio_server.def ] &&  \cp -R  ${2}/EXP00/xmlio_server.def ${1}/EXP00/.
69[ -d    ${2}/MY_SRC ] && \c${2}/MY_SRC/* ${1}/MY_SRC/. 2> /dev/null
Note: See TracBrowser for help on using the repository browser.