Changeset 1773


Ignore:
Timestamp:
2009-11-26T11:56:04+01:00 (12 years ago)
Author:
rblod
Message:

Add some checks in fait_AA_make : control the current directory and check compatibility between agrif and iomput

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/fait_AA_make

    r1722 r1773  
    2828#- 
    2929echo "This script must be run while in the modipsl/modeles/NEMO directory" 
    30 cd WORK 
     30cd WORK || exit 
    3131pwd 
    3232 
     
    8686 
    8787# Agrif library and conv 
    88 libagrif : 
     88libagrif :  \$(call keycompat,key_iomput,key_agrif) 
    8989ifeq (\$(AGRIF),use) 
    9090   @( if [ ! -d OPAFILES ]; then mkdir OPAFILES; fi ) 
     
    324324echo '# Please do not change ' 
    325325echo 'override FCM ?= notuse' 
     326echo '' 
     327 
     328echo '#check key compatibility' 
     329echo 'keycompat=$(if $(and $(findstring $1,$(P_P)),$(findstring $2,$(P_P))),$(error $1 and $2 NOT compatible))' 
    326330 
    327331echo '' 
Note: See TracChangeset for help on using the changeset viewer.