source:
utils/build/mk/agrifpp.sh
@
14692
Last change on this file since 14692 was 13055, checked in by rblod, 4 years ago | |
---|---|
|
|
File size: 1.3 KB |
Rev | Line | |
---|---|---|
[2437] | 1 | #!/bin/bash |
2 | #set -x | |
3 | set -o posix | |
4 | #set -u | |
5 | #set -e | |
6 | #+ | |
7 | # | |
8 | # ========== | |
9 | # agrifpp.sh | |
10 | # ========== | |
11 | # | |
12 | # ---------------------------- | |
13 | # Preform AGrif pre-processing | |
14 | # ---------------------------- | |
15 | # | |
16 | # SYNOPSIS | |
17 | # ======== | |
18 | # | |
19 | # :: | |
20 | # | |
21 | # $ agrifpp.sh | |
22 | # | |
23 | # | |
24 | # DESCRIPTION | |
25 | # =========== | |
26 | # | |
27 | # | |
[9573] | 28 | # Preprocess file using the conv in NEMOFILES directory |
29 | # Standard preprocessed files are stored in NEMOFILES/ppsrc/nemo | |
30 | # Source files are stored under NEMOFILES/obj | |
31 | # Include filess in NEMOFILES/inc | |
[3680] | 32 | # Note that agrif2model.F90 should not be preprocess (standard one) |
[2437] | 33 | # |
34 | # EXAMPLES | |
35 | # ======== | |
36 | # | |
37 | # :: | |
38 | # | |
[3680] | 39 | # $ ./agrifpp.sh FILE_TO_PROCESS |
[2437] | 40 | # |
41 | # TODO | |
42 | # ==== | |
43 | # | |
44 | # option debug | |
45 | # | |
46 | # | |
47 | # EVOLUTIONS | |
48 | # ========== | |
49 | # | |
50 | # $Id: agrifpp.sh 2143 2010-10-04 12:49:55Z rblod $ | |
51 | # | |
52 | # | |
53 | # | |
54 | # * creation | |
55 | # | |
56 | #- | |
[13055] | 57 | MYDIR=$1 |
58 | MYFILE=$(basename "$2") | |
[3680] | 59 | if [ "$MYFILE" == "agrif2model.f90" ];then |
[13055] | 60 | if [ -d ${MYDIR}/${NEW_CONF}/WORK ]; then |
61 | \cp ${MYDIR}/${NEW_CONF}/WORK/${MYFILE/.f90/.F90} ${MYDIR}/${NEW_CONF}/NEMOFILES/obj/$MYFILE | |
62 | else | |
63 | \cp ${MYDIR}/${NEW_CONF}/src/${MYFILE/.f90/.F90} ${MYDIR}/${NEW_CONF}/NEMOFILES/obj/$MYFILE | |
64 | fi | |
[2437] | 65 | else |
[13055] | 66 | cd ${MYDIR}/${NEW_CONF}/NEMOFILES/ppsrc/nemo ; ${MYDIR}/${NEW_CONF}/NEMOFILES/conv ${MYDIR}/${NEW_CONF}/NEMOFILES/agrif_oce.in -rm -incdir ${MYDIR}/${NEW_CONF}/NEMOFILES/inc -comdirout ${MYDIR}/${NEW_CONF}/NEMOFILES/obj -convfile ${MYFILE} > /dev/null |
[3680] | 67 | fi |
Note: See TracBrowser
for help on using the repository browser.