source:
utils/build/mk/Fmake_config.sh
@
9719
Last change on this file since 9719 was 9719, checked in by nicolasmartin, 6 years ago | |
---|---|
|
|
File size: 949 bytes |
Line | |
---|---|
1 | #!/bin/bash |
2 | #set -x |
3 | set -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 -p ${1} |
60 | \mkdir -p ${1}/EXP00 |
61 | \mkdir -p ${1}/MY_SRC |
62 | \cp -R -n ${2}/cpp_${2}.fcm ${1}/cpp_${1}.fcm |
63 | \cp -R -n ${2}/EXPREF/*namelist* ${1}/EXP00/. |
64 | \cp -R -n ${2}/EXPREF/*.xml ${1}/EXP00/. |
65 | [ -f ${2}/EXPREF/AGRIF_FixedGrids.in ] && \cp -R -n ${2}/EXPREF/AGRIF_FixedGrids.in ${1}/EXP00/. |
66 | [ -d ${2}/MY_SRC ] && \cp -n ${2}/MY_SRC/* ${1}/MY_SRC/. 2> /dev/null |
Note: See TracBrowser
for help on using the repository browser.