Ignore:
Timestamp:
2013-10-03T11:07:09+02:00 (8 years ago)
Author:
clevy
Message:

Configuration setting/bugfixes for SETTE see ticket:#1074

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/SETTE/all_functions.sh

    r4044 r4049  
    131131                echo " variable $VAR_NAME will be added in $NAMGRP namelist-group of namelist file ${EXE_DIR}/$1 " >> ${SETTE_DIR}/output.sette 
    132132# Add $VARNAME in namelist file ${EXE_DIR}/$1 in namelist group $NAMGRP 
    133  
    134                 sed "/${NAMGRP} /a\  
    135 ${VAR_NAME}  
    136  " ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp 
     133# on mac osx, replace sed --posix by gsed (available with mac port) 
     134set -vx  
     135                sed --posix "/${NAMGRP} /a\ ${VAR_NAME} " ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp || gsed --posix "/${NAMGRP} /a\ ${VAR_NAME} " ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp 
     136set +vx 
    137137# if file not empty replace ${EXE_DIR}/$1 
    138138                if [ -s ${EXE_DIR}/$1.tmp ] ; then 
Note: See TracChangeset for help on using the changeset viewer.