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

source: branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/TOOLS/COMPILE/Fmake_extconfig.sh @ 5581

Last change on this file since 5581 was 5581, checked in by timgraham, 9 years ago

Merged head of trunk into branch

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#!/bin/bash
2#set -x
3set -o posix
4#set -u
5#set -e
6#+
7# ===============
8# Fmake_extconfig.sh
9# ===============
10# ---------------
11# Make the directories for an externally supported configuration
12# and base the initial versions on the nearest equivalent from the
13# reference set (as named in uspcfg.txt)
14# ---------------
15# SYNOPSIS
16# ========
17# ::
18#  $ Fmake_extconfig.sh
19# DESCRIPTION
20# ===========
21# - Make the config directory
22# - Create repositories needed :
23#  - EXP00 for namelist
24#  - MY_SRC for user sources
25#  - BLD for compilation
26# EXAMPLES
27# ========
28# ::
29#  $ ./Fmake_extconfig.sh CONFIG_NAME REF_CONFIG_NAME
30# TODO
31# ====
32# option debug
33# EVOLUTIONS
34# ==========
35# $Id: Fmake_extconfig.sh 3715 2012-11-28 16:06:02Z acc $
36#   * creation
37#-
38\mkdir  ${1}
39\mkdir  ${1}/EXP00
40\mkdir  ${1}/MY_SRC
41\cp -R  ${2}/cpp_${2}.fcm ${1}/cpp_${1}.fcm
42\cp -R  ${2}/EXP00/*namelist* ${1}/EXP00/.
43[ -f ${2}/EXP00/AGRIF_FixedGrids.in ] &&  \cp -R  ${2}/EXP00/AGRIF_FixedGrids.in ${1}/EXP00/.
44[ -f ${2}/EXP00/iodef.xml ]           &&  \cp -R  ${2}/EXP00/iodef.xml ${1}/EXP00/.
45[ -f ${2}/EXP00/field_def.xml ]       &&  \cp -R  ${2}/EXP00/field_def.xml ${1}/EXP00/.
46[ -f ${2}/EXP00/domain_def.xml ]      &&  \cp -R  ${2}/EXP00/domain_def.xml ${1}/EXP00/.
47[ -f ${2}/EXP00/xmlio_server.def ]    &&  \cp -R  ${2}/EXP00/xmlio_server.def ${1}/EXP00/.
48[ -d    ${2}/MY_SRC ]                 &&  \c${2}/MY_SRC/* ${1}/MY_SRC/. 2> /dev/null
Note: See TracBrowser for help on using the repository browser.