source:
branches/UKMO/dev_r5518_medusa_fix_restart/NEMOGCM/TOOLS/COMPILE/Fmake_bld.sh
@
7850
Last change on this file since 7850 was 7850, checked in by marc, 7 years ago | |
---|---|
|
|
File size: 954 bytes |
Rev | Line | |
---|---|---|
[1972] | 1 | #!/bin/bash |
2 | #set -x | |
3 | set -o posix | |
4 | #set -u | |
5 | #set -e | |
6 | #+ | |
7 | # | |
8 | # ============ | |
9 | # Fmake_bld.sh | |
10 | # ============ | |
11 | # | |
[2520] | 12 | # -------------------- |
[1972] | 13 | # Make build directory |
[2520] | 14 | # -------------------- |
[1972] | 15 | # |
16 | # SYNOPSIS | |
17 | # ======== | |
18 | # | |
19 | # :: | |
20 | # | |
21 | # $ Fmake_bld.sh | |
22 | # | |
23 | # | |
24 | # DESCRIPTION | |
25 | # =========== | |
26 | # | |
27 | # | |
[2520] | 28 | # Under CONFIG_NAME : |
[1972] | 29 | # - Make the build directory |
30 | # - Create repositories needed : | |
[2520] | 31 | # - BLD for compilation |
[1972] | 32 | # |
[2520] | 33 | # A tmpdir can be specified for memory issues. |
34 | # | |
35 | # | |
[1972] | 36 | # EXAMPLES |
37 | # ======== | |
38 | # | |
39 | # :: | |
40 | # | |
[2520] | 41 | # $ ./Fmake_bld.sh NEMOGCM/CONFIG GYRE /usr/tmp |
[1972] | 42 | # |
43 | # | |
44 | # TODO | |
45 | # ==== | |
46 | # | |
47 | # option debug | |
48 | # | |
49 | # | |
50 | # EVOLUTIONS | |
51 | # ========== | |
52 | # | |
[7850] | 53 | # $Id: Fmake_bld.sh 3294 2012-01-28 16:44:18Z rblod $ |
[1972] | 54 | # |
55 | # | |
56 | # | |
57 | # * creation | |
58 | # | |
59 | #- | |
[2136] | 60 | [ ! -d ${3}/${2} ] && \mkdir ${3}/${2} |
61 | [ ! -d ${3}/${2}/BLD ] && \mkdir ${3}/${2}/BLD | |
62 | [ ! -d ${1}/${2}/BLD ] && ln -sf ${3}/${2}/BLD ${1}/${2}/BLD | |
63 | [ -f ${1}/${NEW_CONF}/cpp_${NEW_CONF}.fcm ] && ln -sf ${1}/${NEW_CONF}/cpp_${NEW_CONF}.fcm ${COMPIL_DIR}/cpp.fcm | |
64 | rm -f ${1}/${NEW_CONF}/BLD/fcm.bld.lock |
Note: See TracBrowser
for help on using the repository browser.