Changeset 281


Ignore:
Timestamp:
09/21/11 13:38:44 (13 years ago)
Author:
ymipsl
Message:

gestion de l'environnement -> arch.env

YM

Location:
XMLIO_V2/dev/common
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/common/make_xios

    r274 r281  
    2222# Vérification de la présence d'un identifiant d'architecture. 
    2323 
     24############################################################### 
     25# lecture des chemins propres à l'architecture de la machine # 
     26#           et configuration de l'environnement              # 
     27############################################################### 
     28 
     29rm -f .void_file 
     30echo > .void_file 
     31rm -rf .void_dir 
     32mkdir .void_dir 
     33 
    2434if [[ !(-z $arch) ]] 
    2535   then 
    2636      rm -f  $install_dir/arch.path 
    2737      rm -f  $install_dir/arch.fcm 
     38      rm -f  $install_dir/arch.env 
    2839      ln -s  $install_dir/arch/arch-${arch}.path $install_dir/arch.path 
    2940      ln -s  $install_dir/arch/arch-${arch}.fcm  $install_dir/arch.fcm 
     41 
     42      if test -f $install_dir/arch/arch-${arch}.env 
     43      then 
     44        ln -s $install_dir/arch/arch-${arch}.env arch.env 
     45      else 
     46        ln -s $install_dir/.void_file arch.env 
     47      fi 
     48 
     49      source $install_dir/arch.env 
    3050      source $install_dir/arch.path 
    31    else 
     51  else 
    3252      echo "Veuillez definir une architecture cible !" 
    3353      exit 1 
Note: See TracChangeset for help on using the changeset viewer.