Changeset 349 for trunk/libIGCM/AA_move-and-rename
- Timestamp:
- 09/10/10 17:02:35 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_move-and-rename
r346 r349 206 206 IGCM_debug_PushStack "MY_DODS_Cp" 207 207 208 typeset old_JobName old_R_DODS 208 209 IGCM_sys_Cd ${NEW_R_SAVE} 209 210 old_JobName=${config_UserChoices_JobName} 211 old_R_DODS=${R_DODS} 212 old_R_SAVE=${R_SAVE} 213 210 214 config_UserChoices_JobName=${NEW_JobName} 215 R_DODS=${NEW_R_DODS} 216 R_SAVE=${NEW_R_SAVE} 217 211 218 IGCM_sys_Dods_Cp ${1} 212 219 IGCM_debug_Print 3 "MY_DODS_Cp : ${config_UserChoices_JobName}/${1}" 213 220 IGCM_sys_Cd ${RUN_DIR_PATH} 221 214 222 config_UserChoices_JobName=${old_JobName} 223 R_DODS=${old_R_DODS} 224 R_SAVE=${old_R_SAVE} 215 225 216 226 IGCM_debug_PopStack "MY_DODS_Cp" … … 232 242 233 243 if [ ! -d ${SUBMIT_DIR} ]; then 234 IGCM_debug_Print 0"No ${SUBMIT_DIR}, we stop here"244 IGCM_debug_Print 1 "No ${SUBMIT_DIR}, we stop here" 235 245 exit 1 236 246 fi … … 283 293 IGCM_debug_Print 1 "Move ${R_SAVE} to ${NEW_R_SAVE}" 284 294 if [ -d ${NEW_R_SAVE} ] ; then 285 IGCM_debug_Print 0"ERROR : ${NEW_R_SAVE} directory already exist !"286 IGCM_debug_Print 0"We won't try to We stop here."295 IGCM_debug_Print 1 "ERROR : ${NEW_R_SAVE} directory already exist !" 296 IGCM_debug_Print 1 "We won't try to We stop here." 287 297 exit 1 288 298 fi … … 290 300 291 301 #DEFINE NEW_R_DODS 292 if [ -d ${R_DODS} ] ; then 293 NEW_R_DODS=${NEW_SAVE} 294 fi 302 NEW_R_DODS=${NEW_SAVE}/${NEW_JobName} 295 303 296 304 # Define NEW_REBUILD_DIR … … 330 338 unset listfiles 331 339 set +A listfiles -- $( find ${OutinDir} -type f -name "run.card\.[0-9]*\.[0-9]*" ) 332 IGCM_sys_Cp ${listfiles[*]} ${OutNEWDir} 333 IGCM_sys_Rm -f ${listfiles[*]} 340 if [ ${#listfiles[*]} -gt 0 ] ; then 341 IGCM_sys_Cp ${listfiles[*]} ${OutNEWDir} 342 IGCM_sys_Rm -f ${listfiles[*]} 343 fi 334 344 335 345 # Move and Rename OLD Script_Output … … 456 466 MY_DODS_Cp ${comp}/Analyse/SE 457 467 fi 468 469 MY_DODS_Rm ${comp}/Analyse 470 MY_DODS_Rm ${comp} 458 471 else 459 472 IGCM_debug_Print 2 "nothing to do without Analyse." 460 473 fi 461 474 462 MY_DODS_Rm ${comp}/Analyse463 MY_DODS_Rm ${comp}464 475 done 465 476 … … 484 495 if [ $? = 0 ] ; then 485 496 IGCM_sys_MkdirArchive ${NEW_R_SAVE}/${R_MONITORING} 486 IGCM_sys_MkdirArchive ${NEW_R_SAVE}/${R_MONITORING}/html487 IGCM_sys_MkdirArchive ${NEW_R_SAVE}/${R_MONITORING}/files488 IGCM_sys_MkdirArchive ${NEW_R_SAVE}/${R_MONITORING}/progress489 IGCM_sys_MkdirArchive ${NEW_R_SAVE}/${R_MONITORING}/images490 497 REPLACE_sed ${R_SAVE}/${R_MONITORING}/index.html ${NEW_R_SAVE}/${R_MONITORING} 491 REPLACE_sed ${R_SAVE}/${R_MONITORING}/HEADER.html ${NEW_R_SAVE}/${R_MONITORING}492 REPLACE_sed ${R_SAVE}/${R_MONITORING}/files/HEADER.html ${NEW_R_SAVE}/${R_MONITORING}/files493 REPLACE_sed ${R_SAVE}/${R_MONITORING}/html/HEADER.html ${NEW_R_SAVE}/${R_MONITORING}/html494 REPLACE_sed ${R_SAVE}/${R_MONITORING}/progress/HEADER.html ${NEW_R_SAVE}/${R_MONITORING}/progress495 REPLACE_sed ${R_SAVE}/${R_MONITORING}/images/HEADER.html ${NEW_R_SAVE}/${R_MONITORING}/images496 498 REPLACE_sed ${R_SAVE}/${R_MONITORING}/run.card ${NEW_R_SAVE}/${R_MONITORING} 497 499 REPLACE_sed ${R_SAVE}/${R_MONITORING}/config.card ${NEW_R_SAVE}/${R_MONITORING}
Note: See TracChangeset
for help on using the changeset viewer.