Changeset 346


Ignore:
Timestamp:
09/09/10 15:42:12 (14 years ago)
Author:
mmaipsl
Message:

Correct some problem with ATLAS and MONITORING move.
Improve replacement of MONITORING html files.
Add environment PBS variable "reponse" to bypass asking erase OLD tree.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_move-and-rename

    r342 r346  
    3232#-Q- sx8brodie # pour recevoir un mail en cas de depassement du temps Elapsed (ou autre pb.) 
    3333#-Q- sx8brodie # @ notification = error 
    34 #-Q- sx8brodie # @ environment  = $DEBUG_debug ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $SUBMIT_DIR ; $REBUILD_DIR ; $RebuildFromArchive ; $POST_DIR ; $MASTER ; $RebuildFrequency ; $StandAlone 
     34#-Q- sx8brodie # @ environment  = $DEBUG_debug ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $SUBMIT_DIR ; $REBUILD_DIR ; $RebuildFromArchive ; $POST_DIR ; $MASTER ; $RebuildFrequency ; $StandAlone ; $reponse 
    3535#-Q- aix6 #!/bin/ksh 
    3636#-Q- aix6 ####################### 
     
    4747#-Q- aix6 # pour recevoir un mail en cas de depassement du temps Elapsed (ou autre pb.) 
    4848#-Q- aix6 # @ notification = error 
    49 #-Q- aix6 # @ environment  = $DEBUG_debug ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $SUBMIT_DIR ; $REBUILD_DIR ; $RebuildFromArchive ; $MASTER ; $RebuildFrequency ; $StandAlone  
     49#-Q- aix6 # @ environment  = $DEBUG_debug ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $SUBMIT_DIR ; $REBUILD_DIR ; $RebuildFromArchive ; $MASTER ; $RebuildFrequency ; $StandAlone ; $reponse 
    5050#-Q- aix6 # @ queue 
    5151#-Q- sx8brodie # @ queue 
     
    231231######################################################################## 
    232232 
    233  
    234233if [ ! -d ${SUBMIT_DIR} ]; then 
    235234    IGCM_debug_Print 0 "No ${SUBMIT_DIR}, we stop here" 
     
    471470IGCM_sys_TestDirArchive ${R_SAVE}/${R_ATLAS} 
    472471if [ $? = 0 ] ; then 
     472#    REPLACE_sed ${NEW_R_SAVE}/${R_ATLAS}/*/*/index.html ${NEW_R_SAVE}/${R_ATLAS} 
     473 
     474    MY_DODS_Rm ${R_ATLAS} 
     475 
    473476    IGCM_sys_Mv ${R_SAVE}/${R_ATLAS} ${NEW_R_SAVE}/${R_ATLAS} 
    474 #    REPLACE_sed ${NEW_R_SAVE}/${R_ATLAS}/*/*/index.html ${NEW_R_SAVE}/${R_ATLAS} 
    475  
    476     MY_DODS_Rm ${R_ATLAS} 
    477477 
    478478    MY_DODS_Cp ${R_ATLAS} 
     
    484484if [ $? = 0 ] ; then 
    485485    IGCM_sys_MkdirArchive ${NEW_R_SAVE}/${R_MONITORING} 
     486    IGCM_sys_MkdirArchive ${NEW_R_SAVE}/${R_MONITORING}/html 
     487    IGCM_sys_MkdirArchive ${NEW_R_SAVE}/${R_MONITORING}/files 
     488    IGCM_sys_MkdirArchive ${NEW_R_SAVE}/${R_MONITORING}/progress 
     489    IGCM_sys_MkdirArchive ${NEW_R_SAVE}/${R_MONITORING}/images 
    486490    REPLACE_sed ${R_SAVE}/${R_MONITORING}/index.html ${NEW_R_SAVE}/${R_MONITORING} 
    487     IGCM_sys_Mv ${R_SAVE}/${R_MONITORING} ${NEW_R_SAVE} 
     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}/files 
     493    REPLACE_sed ${R_SAVE}/${R_MONITORING}/html/HEADER.html ${NEW_R_SAVE}/${R_MONITORING}/html 
     494    REPLACE_sed ${R_SAVE}/${R_MONITORING}/progress/HEADER.html ${NEW_R_SAVE}/${R_MONITORING}/progress 
     495    REPLACE_sed ${R_SAVE}/${R_MONITORING}/images/HEADER.html ${NEW_R_SAVE}/${R_MONITORING}/images 
     496    REPLACE_sed ${R_SAVE}/${R_MONITORING}/run.card ${NEW_R_SAVE}/${R_MONITORING} 
     497    REPLACE_sed ${R_SAVE}/${R_MONITORING}/config.card ${NEW_R_SAVE}/${R_MONITORING} 
     498    IGCM_sys_Cp -rp ${R_SAVE}/${R_MONITORING} ${NEW_R_SAVE} 
    488499 
    489500    MY_DODS_Rm ${R_MONITORING} 
     501    IGCM_sys_Rm -rf ${R_SAVE}/${R_MONITORING} 
    490502 
    491503    MY_DODS_Cp ${R_MONITORING} 
     
    523535echo "\033[1;31mDo you REALLY want to erase all this directory ?" 
    524536echo -n " Your answer (y/n) : \033[m" 
    525 read reponse 
     537if [ X${reponse} = X ] ; then 
     538    read reponse 
     539fi 
    526540case ${reponse} in 
    527541             
Note: See TracChangeset for help on using the changeset viewer.