source:
branches/UKMO/dev_r5785_SSS_obsoper/NEMOGCM/TOOLS/COMPILE/Fmake_extconfig.sh
@
7773
Last change on this file since 7773 was 4990, checked in by timgraham, 10 years ago | |
---|---|
|
|
File size: 1.4 KB |
Line | |
---|---|
1 | #!/bin/bash |
2 | #set -x |
3 | set -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 ] && \cp ${2}/MY_SRC/* ${1}/MY_SRC/. 2> /dev/null |
Note: See TracBrowser
for help on using the repository browser.