source:
branches/nemo_v3_3_beta/NEMOGCM/TOOLS/COMPILE/Flist_archfile.sh
@
2794
Last change on this file since 2794 was 2520, checked in by rblod, 14 years ago | |
---|---|
|
|
File size: 789 bytes |
Rev | Line | |
---|---|---|
[2143] | 1 | #!/bin/bash |
2 | #set -x | |
3 | set -o posix | |
4 | #set -u | |
5 | #set -e | |
6 | #+ | |
7 | # | |
8 | # ================== | |
9 | # Flist_archfile.sh | |
10 | # ================== | |
11 | # | |
12 | # -------------------------- | |
13 | # Check the compilation file | |
14 | # -------------------------- | |
15 | # | |
16 | # SYNOPSIS | |
17 | # ======== | |
18 | # | |
19 | # :: | |
20 | # | |
21 | # $ Flist_archfile.sh | |
22 | # | |
23 | # | |
24 | # DESCRIPTION | |
25 | # =========== | |
26 | # | |
27 | # | |
[2520] | 28 | # List arch file available. |
29 | # The first line of each file in NEMO/ARCH directory is echoed. | |
[2143] | 30 | # |
[2520] | 31 | # |
[2143] | 32 | # EXAMPLES |
33 | # ======== | |
34 | # | |
35 | # :: | |
36 | # | |
37 | # $ ./Flist_archfile.sh | |
38 | # | |
39 | # | |
40 | # TODO | |
41 | # ==== | |
42 | # | |
43 | # option debug | |
44 | # | |
45 | # | |
46 | # EVOLUTIONS | |
47 | # ========== | |
48 | # | |
49 | # $Id$ | |
50 | # | |
51 | # | |
52 | # | |
53 | # * creation | |
54 | # | |
55 | #- | |
56 | echo "Available compilers for -m option :" | |
57 | for file in `ls ${MAIN_DIR}/ARCH` | |
58 | do | |
59 | zvar1=${file#arch-} | |
60 | zvar2=$(head -1 ${MAIN_DIR}/ARCH/$file) | |
61 | #echo "${zvar1%.fcm} : ${zvar2#\#}" | |
62 | printf "%-20s %s %-s\n" "${zvar1%.fcm}" : "${zvar2#\#}" | |
63 | done |
Note: See TracBrowser
for help on using the repository browser.