Changeset 350
- Timestamp:
- 09/14/10 16:32:41 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_move-and-rename
r349 r350 97 97 98 98 #************************************************************** 99 # Author: Sebastien Denvil100 # Contact: Sebastien.Denvil@ipsl.jussieu.fr99 # Author: Martial Mancip 100 # Contact: Martial.Mancip@ipsl.jussieu.fr 101 101 # $Date: $ 102 102 # $Author: $ … … 333 333 334 334 # Change JobName and copy run.card 335 REPLACE_sed ${OutinDir}/run.card ${OutNEWDir} 335 if [ -f ${OutinDir}/run.card ] ; then 336 REPLACE_sed ${OutinDir}/run.card ${OutNEWDir} 337 fi 336 338 337 339 # Just copy historical run.card … … 382 384 MOVE_and_RENAME_files "listfiles" 383 385 done 386 387 unset COMPFILES 388 set +A COMPFILES -- $( find ${R_SAVE}/${comp}/Output -type f ) 389 390 if [ ${#COMPFILES[*]} -gt 0 ] ; then 391 IGCM_debug_Print 2 "simple Output FILES : ${COMPFILES[*]}." 392 393 MOVE_and_RENAME_files "COMPFILES" 394 fi 384 395 done 385 396 … … 513 524 514 525 IGCM_debug_Print 1 "Move REBUILD" 515 set +A LISTREBUILDS -- $( find ${REBUILD_DIR} -type d -not -name "*${config_UserChoices_JobName}" ) 516 517 for rebdir in ${LISTREBUILDS[*]} ; do 526 set +A LISTREBUILDS -- $( find ${REBUILD_DIR} -type d -not -name "*${config_UserChoices_JobName}" -a -not -name "*TMP" ) 527 528 for ThisREBDir in ${LISTREBUILDS[*]} ; do 529 rebdir=$( basename ${ThisREBDir} ) 518 530 IGCM_debug_Print 2 "${rebdir}." 519 531 if [ X${config_Post_RebuildFromArchive} = Xtrue ] ; then … … 523 535 fi 524 536 REPLACE_sed ${REBUILD_DIR}/${rebdir}/rebuild.ksh ${NEW_REBUILD_DIR}/${rebdir} 525 IGCM_sys_Mv -f ${REBUILD_DIR}/${rebdir} ${NEW_REBUILD_DIR}537 IGCM_sys_Mv -f ${REBUILD_DIR}/${rebdir}/* ${NEW_REBUILD_DIR}/${rebdir}/ 526 538 done 527 539 fi
Note: See TracChangeset
for help on using the changeset viewer.