source:
branches/2011/dev_r2787_MERCATOR2_tidalharm/NEMOGCM/TOOLS/COMPILE/Flist_archfile.sh
@
6438
Last change on this file since 6438 was 2520, checked in by rblod, 14 years ago | |
---|---|
|
|
File size: 789 bytes |
Line | |
---|---|
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 | # |
28 | # List arch file available. |
29 | # The first line of each file in NEMO/ARCH directory is echoed. |
30 | # |
31 | # |
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.