/[lmdze]/trunk/libf/make.sh
ViewVC logotype

Contents of /trunk/libf/make.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 47 - (show annotations)
Fri Jul 1 15:00:48 2011 UTC (12 years, 10 months ago) by guez
File MIME type: application/x-sh
File size: 801 byte(s)
Split "thermcell.f" and "cv3_routines.f".
Removed copies of files that are now in "L_util".
Moved "mva9" and "diagetpq" to their own files.
Unified variable names across procedures.

1 # This is a script in Bash.
2
3 # This script allows to build LMDZE into a directory other than
4 # "libf". If you just want to build into "libf" with the current
5 # compiler file, you can invoke "make" directly.
6
7 # Usage:
8 # make.sh [options and arguments for make]
9
10 set -xe
11
12 compiler=gfortran
13 ##compiler=nag_tools
14
15 dest_dir=/save/workdir_Lionel/LMDZ_work/LMDZE/Compil_prod_$compiler
16 ##dest_dir=~/Bureau/Compil_prod_$compiler
17
18 # (Do not just use the name of the compiler as a directory name, it
19 # confuses some compilers.)
20
21 test -d $dest_dir
22
23 if [[ ../Compilers/$compiler.mk -nt $dest_dir/compiler.mk ]]
24 then
25 cp --force ../Compilers/$compiler.mk $dest_dir/compiler.mk
26 chmod a-w $dest_dir/compiler.mk
27 fi
28
29 make -C $dest_dir -f $PWD/GNUmakefile -I$PWD $* libf_dir=$PWD
30 # "-I" option for "nag_rules.mk"

Properties

Name Value
svn:eol-style native
svn:executable

  ViewVC Help
Powered by ViewVC 1.1.21