Changeset 376 for XIOS/trunk/make_xios


Ignore:
Timestamp:
10/16/12 16:41:57 (12 years ago)
Author:
aclsce
Message:
  • Fixed small bug
File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/make_xios

    r374 r376  
    4040 
    4141# Installation des sources 
    42 for tarname in `ls $install_dir/tools/archive | grep tar.gz` ; do 
    43     echo -e "- uncompress archives ..." 
    44     gunzip -f "$tarname" 
    45     tar -xf ${tarname%.gz} 
    46 done 
     42is_existing_gz=`ls $install_dir/tools/archive | grep tar.gz | wc -l` 
     43if [ "x$is_existing_gz" != "x0" ] 
     44then 
     45    for tarname in `ls $install_dir/tools/archive/*.tar.gz` ; do 
     46        echo -e "- uncompress archives ..." 
     47        gunzip -f "$tarname" 
     48        tar -xf ${tarname%.gz} 
     49    done 
     50fi 
    4751 
    4852# Vérification de la présence d'un identifiant d'architecture. 
Note: See TracChangeset for help on using the changeset viewer.