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

Annotation of /trunk/libf/make.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (hide annotations)
Tue Sep 20 09:14:34 2011 UTC (12 years, 8 months ago) by guez
File MIME type: application/x-sh
File size: 1003 byte(s)
Split "getincom.f90" into "getincom.f90" and "getincom2.f90". Split
"nuage.f" into "nuage.f90", "diagcld1.f90" and "diagcld2.f90". Created
module "chem" from included file "chem.h". Moved "YOEGWD.f90" to
directory "Orography".

In "physiq", for evaporation of water, "zlsdcp" was equal to
"zlvdc". Removed useless variables.

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

Properties

Name Value
svn:eol-style native
svn:executable

  ViewVC Help
Powered by ViewVC 1.1.21