Changeset 2162 for TOOLS/SURPACK_IPSL


Ignore:
Timestamp:
10/02/13 16:55:27 (8 years ago)
Author:
acosce
Message:

Correct a bug and add a new list (files that we will not pack)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/SURPACK_IPSL/SaveNewSimuPack.sh

    r2161 r2162  
    7676    cd ${USER_OUTPUT_PROGRESS} 
    7777    find . -name "removedFiles*" > liste_files.txt 
     78 
    7879    rmv_file_bis=${USER_OUTPUT_PROGRESS}/rmv_afterSurPack.txt 
     80    rm -f ${rmv_file_bis} 
    7981 
    80  
    81     rm -f ${rmv_file_bis} 
    8282    for removedfile in `awk '{print $0}' liste_files.txt`; do  
    8383        rmv_file=${removedfile} 
     
    129129    done 
    130130    sed -i -e "s%${SIMU}\/%${SIMU_BP}\/%g" ${rmv_file_bis} 
     131    echo "grep ${JobName} ${rmv_file_bis} > ${rmv_file_bis}.tmp" 
     132    grep ${JobName} ${rmv_file_bis} > ${rmv_file_bis}.tmp; mv  ${rmv_file_bis}.tmp  ${rmv_file_bis} 
    131133    chmod 755 ${rmv_file_bis} 
    132134         
    133     if [[ $execRmv == 1 ||  ]] ; then  
     135 
     136 
     137    if [[ $execRmv == 1 ]] ; then  
    134138# sauver l'ancienne version  
    135139        mv ${SIMU} ${SIMU_BP} 
     
    137141        mv ${OUTPUT_STORE}${LITTLE_PATH}  ${SIMU} 
    138142#copie du repertoire Exe qui ne change pas  
    139         cp -r ${SIMU_BP}/Exe ${SIMU}/. 
     143        mv ${SIMU_BP}/Exe ${SIMU}/. 
    140144# effacer dans l'ancienne version les fichiers de rmv_file_bis 
    141145        ${rmv_file_bis} 
     146#creation de la liste des fichiers restant  
     147        find ${SIMU_BP} -printf "%y %s %p \n" > ${USER_OUTPUT_PROGRESS}/lastFiles_afterSurPack.txt 
     148 
    142149    fi  
    143150done 
Note: See TracChangeset for help on using the changeset viewer.