source:
branches/DEV_r1879_FCM/NEMOGCM/TOOLS/Fcheck_archfile.sh
@
2012
Last change on this file since 2012 was 1972, checked in by flavoni, 14 years ago | |
---|---|
|
|
File size: 909 bytes |
Line | |
---|---|
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 : |
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 | # $ ./Fcheck_archfile.sh COMPILER |
41 | # |
42 | # |
43 | # TODO |
44 | # ==== |
45 | # |
46 | # option debug |
47 | # |
48 | # |
49 | # EVOLUTIONS |
50 | # ========== |
51 | # |
52 | # $Id$ |
53 | # |
54 | # |
55 | # - rblod 2010-06-20T16:11:47Z |
56 | # |
57 | # * creation |
58 | # |
59 | #- |
60 | |
61 | if [ ${#1} -eq 0 ]; then |
62 | if [ ! -f ${TOOLS_DIR}/arch.fcm ]; then |
63 | echo "Warning !!!" |
64 | echo "NO compiler chosen" |
65 | echo "Try makenemo_fcm -h for help" |
66 | echo "EXITING..." |
67 | exit 1 |
68 | fi |
69 | else |
70 | ln -sf ${MAIN_DIR}/ARCH/arch-${1}.fcm ${TOOLS_DIR}/arch.fcm |
71 | fi |
Note: See TracBrowser
for help on using the repository browser.