Changeset 246


Ignore:
Timestamp:
07/05/11 15:05:38 (13 years ago)
Author:
hozdoba
Message:

Préparation nouvelle arborescence

Location:
XMLIO_V2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/common/make_xios

    r245 r246  
    4141      COMPIL_FFLAGS="%PROD_FFLAGS" 
    4242elif [[ "$compil_mode" == "dev" ]] 
    43    then 
     43   then  
    4444      COMPIL_CFLAGS="%DEV_CFLAGS" 
    4545      COMPIL_FFLAGS="%DEV_FFLAGS" 
  • XMLIO_V2/extract_xios

    r244 r246  
    55doc="F" 
    66extdir="." 
    7 interactive="false" 
     7 
     8interactive=false 
     9 
     10has_interactive=false 
     11has_rev=false 
     12has_user=false 
     13has_branch=false 
     14has_compil_mode=false 
     15has_arch=false 
     16has_doc=false 
     17has_extdir=false 
     18 
    819 
    920echo -e "Installation de la bibliothÚque xmlioserver ... " 
     
    1627            # A modifier 
    1728            exit;; 
    18          "--interactive") interactive="true"  ; has_interactive=true; shift ;; 
    19          "--rev")         svnrev=$2           ; has_rev=true; shift; shift ;; 
    20          "--user")        svnuser=$2          ; has_user=true; shift; shift ;; 
    21          "--branch")      svnbranch=$2        ; has_branch=true; shift; shift ;; 
    22          "--prod")        compil_mode="prod"  ; has_compil_mode=true; shift ;; 
    23          "--dev")         compil_mode="dev"   ; has_compil_mode=true; shift ;; 
    24          "--debug")       compil_mode="debug" ; has_compil_mode=true; shift ;; 
    25          "--arch")        arch=$2             ; has_arch=true; shift; shift ;; 
    26          "--doc")         withdoc="Y"         ; has_doc=true; shift ;; 
    27          *)               extdir="$1"         ; has_extdir=true; shift ;; 
     29         "--interactive") interactive=true    ; has_interactive=true; shift ;; 
     30         "--rev")         svnrev=$2           ; has_rev="true"; shift; shift ;; 
     31         "--user")        svnuser=$2          ; has_user="true"; shift; shift ;; 
     32         "--branch")      svnbranch=$2        ; has_branch="true"; shift; shift ;; 
     33         "--prod")        compil_mode="prod"  ; has_compil_mode="true"; shift ;; 
     34         "--dev")         compil_mode="dev"   ; has_compil_mode="true"; shift ;; 
     35         "--debug")       compil_mode="debug" ; has_compil_mode="true"; shift ;; 
     36         "--arch")        arch=$2             ; has_arch="true"; shift; shift ;; 
     37         "--doc")         withdoc="Y"         ; has_doc="true"; shift ;; 
     38         *)               extdir="$1"           ; has_extdir=true; shift ;; 
    2839      esac 
    2940   done 
    3041 
    3142# Récupération du répertoire local d'installation 
    32 if  [[ $interactive=="true" && -z $extdir ]] 
    33    read -p "Entrez le répertoire d'extraction de la bibliothÚque : "$PWD"/" extdir 
     43if  [[  $interactive == "true" && $has_extdir == "false"  ]] 
     44   then 
     45      read -p "Entrez le répertoire d'extraction de la bibliothÚque : "$PWD"/" extdir 
    3446fi 
     47 
    3548install_dir=$PWD/$extdir 
    3649mkdir --parents $install_dir 
    3750 
    3851# Documentation de la distribution 
    39 if  [[ $interactive=="true" && -z $has_doc ]] 
    40    read -p "Souhaitez-vous extraire la documentation ? [Y/N]: " withdoc 
     52if  [[ $interactive == "true" && $has_doc == "false" ]] 
     53   then 
     54      read -p "Souhaitez-vous extraire la documentation ? [Y/N]: " withdoc 
    4155fi 
    4256 
    4357# Architecture de compilation 
    44 if  [[ $interactive=="true" && -z $has_arch ]] 
    45    echo -e "\r\nLe serveur d'Entrée/Sortie peut-être installée sur diverses machine parmis lesquels : " 
    46    echo -e "\tIA64_PLATINE        => Configuration pour la machine de calcul Platine du CCRT !" 
    47    echo -e "\tX86_LOCGNU_FEDORA   => Configuration locale pour le compilateur GNU sous fedora !" 
    48    echo -e "\tX86_LOCINTEL_FEDORA => Configuration locale pour le compilateur intel sous fedora !\r\n" 
    49        
    50    read -p "Sur quelle architecture travaillez-vous ? (aucune par défaut): " arch 
     58if  [[ $interactive == "true" && $has_arch == "false" ]] 
     59   then 
     60      echo -e "\r\nLe serveur d'Entrée/Sortie peut-être installée sur diverses machine parmis lesquels : " 
     61      echo -e "\tIA64_PLATINE        => Configuration pour la machine de calcul Platine du CCRT !" 
     62      echo -e "\tX86_LOCGNU_FEDORA   => Configuration locale pour le compilateur GNU sous fedora !" 
     63      echo -e "\tX86_LOCINTEL_FEDORA => Configuration locale pour le compilateur intel sous fedora !\r\n" 
     64          
     65      read -p "Sur quelle architecture travaillez-vous ? (aucune par défaut): " arch 
    5166fi 
    5267 
     
    6479 
    6580# Récupération du login de connexion svn 
    66 if  [[ $interactive=="true" && -z $has_user ]] 
    67    echo -e -n "Veuillez à présent indiquer votre identifiant de connexion au serveur svn" 
    68    read -p " forge.ipsl.jussieu.fr (Ne rien écrire si anonyme) : " svnuser 
     81if  [[ $interactive == "true" && $has_user  == "false" ]] 
     82   then 
     83      echo -e -n "Veuillez à présent indiquer votre identifiant de connexion au serveur svn" 
     84      read -p " forge.ipsl.jussieu.fr (Ne rien écrire si anonyme) : " svnuser 
    6985fi 
    7086 
    7187# Récupération de la branche svn de travail 
    72 if  [[ $interactive=="true" && -z $has_branch ]] 
    73    read -p "Quelle branche souhaitez-vous extraire ? (/trunk par défaut): " svnbranch 
     88if  [[ $interactive == "true" && $has_branch == "false" ]] 
     89   then 
     90      read -p "Quelle branche souhaitez-vous extraire ? (/trunk par défaut): " svnbranch 
    7491fi 
    7592 
     
    90107 
    91108 
    92 if [[ $withdoc==Y* ]] 
     109if [[ $withdoc == [Yy]* ]] 
    93110   then 
    94       svn -q co $connect/doc $install_dir/doc 
    95111      installopt=$installopt" --doc" 
    96112fi 
    97113 
    98 svn -q co $connect/src    $install_dir/src 
    99 svn -q co $connect/arch   $install_dir/arch 
    100 svn -q co $connect/tools  $install_dir/tools 
    101 svn -q co $connect/extern $install_dir/extern 
    102  
    103 cp $install_dir/tools/bld.cfg  $install_dir/bld.cfg 
    104 cp $install_dir/tools/Doxyfile $install_dir/Doxyfile  
    105  
    106 cp $install_dir/tools/make_xios    $install_dir/make_xios 
     114svn -q co $connect  $install_dir 
    107115 
    108116echo -e "- Décompression des archives ..." 
Note: See TracChangeset for help on using the changeset viewer.