source:
branches/nemo_v3_3_beta/NEMOGCM/TOOLS/COMPILE/Fcheck_archfile.sh
@
3220
Last change on this file since 3220 was 2520, checked in by rblod, 14 years ago | |
---|---|
|
|
File size: 958 bytes |
Rev | Line | |
---|---|---|
[1972] | 1 | #!/bin/bash |
2 | #set -x | |
3 | set -o posix | |
4 | #set -u | |
5 | #set -e | |
6 | #+ | |
7 | # | |
8 | # ================== | |
9 | # Fcheck_archfile.sh | |
10 | # ================== | |
11 | # | |
12 | # -------------------------- | |
13 | # Check the compilation file | |
14 | # -------------------------- | |
15 | # | |
16 | # SYNOPSIS | |
17 | # ======== | |
18 | # | |
19 | # :: | |
20 | # | |
21 | # $ Fcheck_archfile.sh | |
22 | # | |
23 | # | |
24 | # DESCRIPTION | |
25 | # =========== | |
26 | # | |
27 | # | |
28 | # Check the choice of the compiler. | |
29 | # Three cases : | |
[2520] | 30 | # |
[1972] | 31 | # - There was a previous choice |
[2520] | 32 | # - A new one has be specified, we use this one |
33 | # - No information, exit | |
[1972] | 34 | # |
[2520] | 35 | # We use TOOLS/COMPILE/arch.fcm to see if something was chosen. |
36 | # | |
[1972] | 37 | # EXAMPLES |
38 | # ======== | |
39 | # | |
40 | # :: | |
41 | # | |
[2136] | 42 | # $ ./Fcheck_archfile.sh ARCHFILE COMPILER |
[1972] | 43 | # |
44 | # | |
45 | # TODO | |
46 | # ==== | |
47 | # | |
48 | # option debug | |
49 | # | |
50 | # | |
51 | # EVOLUTIONS | |
52 | # ========== | |
53 | # | |
54 | # $Id$ | |
55 | # | |
56 | # | |
57 | # | |
58 | # * creation | |
59 | # | |
60 | #- | |
61 | ||
[2136] | 62 | if [ ${#2} -eq 0 ]; then |
63 | if [ ! -f ${COMPIL_DIR}/$1 ]; then | |
[1972] | 64 | echo "Warning !!!" |
65 | echo "NO compiler chosen" | |
[2359] | 66 | echo "Try makenemo -h for help" |
[1972] | 67 | echo "EXITING..." |
68 | exit 1 | |
69 | fi | |
70 | else | |
[2136] | 71 | ln -sf ${MAIN_DIR}/ARCH/arch-${2}.fcm ${COMPIL_DIR}/$1 |
72 | fi |
Note: See TracBrowser
for help on using the repository browser.