source:
branches/DEV_r2460_v3_3beta_NOL/NEMOGCM/TOOLS/COMPILE/Flist_archfile.sh
@
2946
Last change on this file since 2946 was 2143, checked in by rblod, 14 years ago | |
---|---|
|
|
File size: 837 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 | # Check the choice of the compiler. |
29 | # Three cases : |
30 | |
31 | # - There was a previous choice |
32 | # - A new one has be specified |
33 | # - No information, exit |
34 | # |
35 | # EXAMPLES |
36 | # ======== |
37 | # |
38 | # :: |
39 | # |
40 | # $ ./Flist_archfile.sh |
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 | echo "Available compilers for -m option :" |
60 | for file in `ls ${MAIN_DIR}/ARCH` |
61 | do |
62 | zvar1=${file#arch-} |
63 | zvar2=$(head -1 ${MAIN_DIR}/ARCH/$file) |
64 | #echo "${zvar1%.fcm} : ${zvar2#\#}" |
65 | printf "%-20s %s %-s\n" "${zvar1%.fcm}" : "${zvar2#\#}" |
66 | done |
Note: See TracBrowser
for help on using the repository browser.