Ignore:
Timestamp:
02/26/10 14:55:34 (14 years ago)
Author:
mmaipsl
Message:

Supress buggy space after HOST and LOGIN variables.
Add an optionnal argument to all IGCM_sys_Put_Out functions :
if any 3thrd argument is there, file won't be protected. If
there is no argument (default in libIGCM), file will be set read-only.

File:
1 edited

Legend:

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

    r217 r228  
    6969# Host and user names 
    7070# $hostname ou hostname 
    71 typeset  HOST=${HOST:=$( hostname ) } 
     71typeset  HOST=${HOST:=$( hostname )} 
    7272# $username ou whoami 
    73 typeset  LOGIN=${LOGIN:=$( whoami ) } 
     73typeset  LOGIN=${LOGIN:=$( whoami )} 
    7474# $hostname of the MASTER job 
    7575typeset -r MASTER=mercure 
     
    853853 
    854854        if [ X${JobType} = XRUN ] ; then 
    855             IGCM_sys_Chmod 444 ${1} 
     855            if [ X${3} = X ] ; then 
     856                IGCM_sys_Chmod 444 ${1} 
     857            fi 
    856858        fi 
    857859        # 
Note: See TracChangeset for help on using the changeset viewer.