source:
trunk/NEMOGCM/TOOLS/COMPILE/Fcopy_dir.sh
@
4146
Last change on this file since 4146 was 3294, checked in by rblod, 12 years ago | |
---|---|
|
|
File size: 712 bytes |
Rev | Line | |
---|---|---|
[1972] | 1 | #!/bin/bash |
2 | #set -x | |
3 | set -o posix | |
4 | #set -u | |
5 | #set -e | |
6 | #+ | |
7 | # | |
8 | # ============ | |
9 | # Fcopy_dir.sh | |
10 | # ============ | |
11 | # | |
12 | # -------------------------- | |
13 | # Copy a reference directory | |
14 | # -------------------------- | |
15 | # | |
16 | # SYNOPSIS | |
17 | # ======== | |
18 | # | |
19 | # :: | |
20 | # | |
21 | # $ Fcopy_dir.sh | |
22 | # | |
23 | # | |
24 | # DESCRIPTION | |
25 | # =========== | |
26 | # | |
27 | # | |
28 | # When a refenrence configuration is set, | |
[2520] | 29 | # Copy NEMO sub-directories needed (OPA_SRC, TOP_SRC ...) |
[1972] | 30 | # |
31 | # EXAMPLES | |
32 | # ======== | |
33 | # | |
34 | # :: | |
35 | # | |
[2520] | 36 | # $ ./Fcopy_dir.sh ORCA2_LIM |
[1972] | 37 | # |
38 | # | |
39 | # TODO | |
40 | # ==== | |
41 | # | |
42 | # option debug | |
43 | # | |
44 | # | |
45 | # EVOLUTIONS | |
46 | # ========== | |
47 | # | |
48 | # $Id$ | |
49 | # | |
50 | # | |
51 | # | |
52 | # * creation | |
53 | # | |
54 | #- | |
55 | ||
56 | declare -a ZTAB | |
[3294] | 57 | grep "$1 " ${CONFIG_DIR}/cfg.txt > ${CONFIG_DIR}/cfg.tmp |
58 | read -a ZTAB < ${CONFIG_DIR}/cfg.tmp | |
[1972] | 59 | TAB=( ${ZTAB[@]:1} ) |
[3294] | 60 | \rm ${CONFIG_DIR}/cfg.tmp |
[1972] | 61 | |
62 | unset -v ZTAB |
Note: See TracBrowser
for help on using the repository browser.