Changeset 1870 for TOOLS


Ignore:
Timestamp:
09/07/12 15:33:32 (12 years ago)
Author:
gpincka
Message:

verif du parametre : choix du check ou non

Location:
TOOLS/PACK_IPSL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/PACK_IPSL/loadParameters.sh

    r1865 r1870  
    33# nombre de listes a verifier par l'outil "check_ncrcat_list.sh" 
    44export nbListsToCheck=2 
     5 
     6# Voulez vous le check ? 
     7export doYouWantCheck="no" 
  • TOOLS/PACK_IPSL/parallelPack.sh

    r1866 r1870  
    7171        exit 1 
    7272    fi 
    73  
     73} 
     74 
     75function checkParameters 
     76{ 
     77    isCheckVarOK=`echo $doYouWantCheck | grep -E '^(yes|no)$' | wc -l ` 
     78    if [ "x${isCheckVarOK}" == "x0" ] 
     79    then 
     80        echo "La variable 'doYouWantCheck' doit etre yes ou no" 
     81        exit 1 
     82    fi 
    7483} 
    7584 
     
    105114        echo "force restart from the beginning ..." 
    106115        ;; 
     116   -h|--help|-help) 
     117        echo "---------------------------------------------------" 
     118        echo "Usage: parallelPack.sh [-f]" 
     119        echo "Description:" 
     120        echo "   Launches the simultaneous treatments (ncrcat, tar, cap) of" 
     121        echo "   file lists contained in the IGCM_DEM directory." 
     122        echo "   In case of machine crash, this script handle restarts from the point" 
     123        echo "   the machine crashed." 
     124        echo 
     125        echo "Options:" 
     126        echo "   -h, --help, -help" 
     127        echo "        Print this manual" 
     128        echo "   -f" 
     129        echo "        Force to restart the treatments from the beginning" 
     130        echo "---------------------------------------------------" 
     131        exit 
     132        ;; 
    107133   esac 
    108134   shift 
     
    119145# On charge les parametres 
    120146. loadParameters.sh 
     147 
     148checkParameters 
    121149 
    122150 
Note: See TracChangeset for help on using the changeset viewer.