Ignore:
Timestamp:
06/04/09 09:08:25 (15 years ago)
Author:
mmaipsl
Message:

Add experience type management : JobType? = DEB(ug), DEV(elopment), RUN (default)
(No propoagation in Post-treatment for instance).
Put "Where do we run ?" question in libIGCM_sys.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys.ksh

    r99 r128  
    1010#  This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC 
    1111# History: 
    12 # Modification: 
     12# Modification: JobType ( Protect output datas ) 
    1313# 
    1414#************************************************************** 
     
    1616# bypass specific internationalization (for awk) 
    1717export LC_ALL="C" 
     18 
     19# By default, all libIGCM_sys save functions will protect output datas (RUN execution mode)  
     20# other values : DEB(ug), DEV(elopment). 
     21JobType=${JobType:=RUN} 
     22 
     23echo 
     24echo "====================================================" 
     25echo "Where do we run ?" 
     26uname -a 
     27echo "====================================================" 
     28echo 
     29 
     30 
     31if [ X${JobType} == XDEB ] ; then 
     32    echo "DEBUG mode : activation of 'set -vx' mode." 
     33    set -vx 
     34    DEBUG_debug=true 
     35    DEBUG_sys=true 
     36    echo "====================================================" 
     37fi 
    1838 
    1939case $( hostname -s ) in 
Note: See TracChangeset for help on using the changeset viewer.