Last change
on this file since 5134 was
5093,
checked in by abarral, 4 months ago
|
Use latest FCM source (2021.05.0) [Note: we still use the legacy FCM1 build system]
Correct UTF8 encoding of french chars
Compil OK (tested: oldrad/rrtm/ecrad, para/seq/1D)
Convergence (ref r5063) bench 33x OK oldrad orch2.0 (tested: para/seq)
|
-
Property copyright set to
Name of program: LMDZ Creation date: 1984 Version: LMDZ5 License: CeCILL version 2 Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539 See the license file in the root directory
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
687 bytes
|
Rev | Line | |
---|
[1542] | 1 | #!/bin/bash |
---|
[1755] | 2 | # Usage: |
---|
| 3 | # ./build_gcm [path] |
---|
| 4 | # where 'path' is an optional argument to this script specifying |
---|
| 5 | # the full path to where the 'fcm' command is to be found |
---|
[783] | 6 | |
---|
[4096] | 7 | echo "compiling..." > '.lock' |
---|
| 8 | |
---|
[1755] | 9 | dirname="" #path to where the fcm command will be found |
---|
| 10 | if (( $# >= 1 )) ; then |
---|
| 11 | dirname=$1 |
---|
| 12 | # check that "dirname" exists and is a directory |
---|
| 13 | if [[ ! -d $dirname ]] ; then |
---|
| 14 | echo "$0 error : $dirname is not a directory" |
---|
| 15 | exit |
---|
| 16 | fi |
---|
| 17 | # add a trailing "/" to $dirname |
---|
| 18 | dirname=${dirname}"/" |
---|
[1802] | 19 | shift; |
---|
[1755] | 20 | fi |
---|
[783] | 21 | |
---|
[1755] | 22 | # run "fcm build" command |
---|
[5093] | 23 | echo "Running <${dirname}fcm build " "$@" ">" |
---|
| 24 | "${dirname}fcm" build "$@" |
---|
[783] | 25 | |
---|
[4103] | 26 | build_command_status=$? |
---|
[3647] | 27 | |
---|
[1755] | 28 | # cleanup |
---|
[5093] | 29 | rm -f '.lock' |
---|
[1542] | 30 | |
---|
[4103] | 31 | exit $build_command_status |
---|
| 32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.