Changeset 1136


Ignore:
Timestamp:
Mar 27, 2009, 4:54:19 PM (15 years ago)
Author:
jghattas
Message:

Ajoute possibilite de donner le chemin en entree de makegcm_fcm. Si le chemin n'est pas donne, on suppose comme avant, que le chemin de fcm est deja dans le variable environement PATH.

YM+JG

Location:
LMDZ4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/LMDZ4-dev/makegcm_fcm

    r1132 r1136  
    2727set io=ioipsl
    2828set LIBPREFIX=""
     29set fcm_path=none
    2930
    3031set LMDGCM=`/bin/pwd`
     
    7273[-filtre NOMFILTRE]        : prend le filtre dans libf/NOMFILTRE (def: filtrez)
    7374[-link LINKS]              : liens optionels avec d'autres librairies
     75[-fcm_path path]           : chemin pour fcm (def: le chemin est suppose deja exister dans le PATH)
    7476 -m arch                   : nom de l'architecture cible
    7577 exec                      : exécutable généré
     
    132134        set LIB="$LIB $2" ; shift ; shift ; goto top
    133135
     136     case -fcm_path
     137       set fcm_path=$2 ; shift ; shift ; goto top
     138
    134139     case -m
    135140       set arch=$2 ; shift ; shift ; goto top
     
    141146endif
    142147
     148###############################################################
     149# mettre le chemin du fcm dans le path
     150###############################################################
     151if  ( "$fcm_path" != 'none' ) then
     152    setenv PATH ${fcm_path}:${PATH}
     153endif
     154
     155echo "Chemin du fcm utlise :"
     156which fcm
    143157
    144158###############################################################
  • LMDZ4/trunk/makegcm_fcm

    r1039 r1136  
    2828set io=ioipsl
    2929set LIBPREFIX=""
     30set fcm_path=none
    3031
    3132set LMDGCM=`/bin/pwd`
     
    7374[-filtre NOMFILTRE]        : prend le filtre dans libf/NOMFILTRE (def: filtrez)
    7475[-link LINKS]              : liens optionels avec d'autres librairies
     76[-fcm_path path]           : chemin pour fcm (def: le chemin est suppose deja exister dans le PATH)
    7577 -m arch                   : nom de l'architecture cible
    7678 exec                      : exécutable généré
     
    133135        set LIB="$LIB $2" ; shift ; shift ; goto top
    134136
     137     case -fcm_path
     138       set fcm_path=$2 ; shift ; shift ; goto top
     139
    135140     case -m
    136141       set arch=$2 ; shift ; shift ; goto top
     
    142147endif
    143148
     149###############################################################
     150# mettre le chemin du fcm dans le path
     151###############################################################
     152if  ( "$fcm_path" != 'none' ) then
     153    setenv PATH ${fcm_path}:${PATH}
     154endif
     155
     156echo "Chemin du fcm utlise :"
     157which fcm
    144158
    145159###############################################################
Note: See TracChangeset for help on using the changeset viewer.