Changeset 2162
- Timestamp:
- 10/02/13 16:55:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/SURPACK_IPSL/SaveNewSimuPack.sh
r2161 r2162 76 76 cd ${USER_OUTPUT_PROGRESS} 77 77 find . -name "removedFiles*" > liste_files.txt 78 78 79 rmv_file_bis=${USER_OUTPUT_PROGRESS}/rmv_afterSurPack.txt 80 rm -f ${rmv_file_bis} 79 81 80 81 rm -f ${rmv_file_bis}82 82 for removedfile in `awk '{print $0}' liste_files.txt`; do 83 83 rmv_file=${removedfile} … … 129 129 done 130 130 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} 131 133 chmod 755 ${rmv_file_bis} 132 134 133 if [[ $execRmv == 1 || ]] ; then 135 136 137 if [[ $execRmv == 1 ]] ; then 134 138 # sauver l'ancienne version 135 139 mv ${SIMU} ${SIMU_BP} … … 137 141 mv ${OUTPUT_STORE}${LITTLE_PATH} ${SIMU} 138 142 #copie du repertoire Exe qui ne change pas 139 cp -r${SIMU_BP}/Exe ${SIMU}/.143 mv ${SIMU_BP}/Exe ${SIMU}/. 140 144 # effacer dans l'ancienne version les fichiers de rmv_file_bis 141 145 ${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 142 149 fi 143 150 done
Note: See TracChangeset
for help on using the changeset viewer.