Changeset 2343 for CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/xios.driver
- Timestamp:
- 09/26/14 11:46:12 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/xios.driver
r2315 r2343 1 1 #!/bin/ksh 2 3 function XIOS_sed_xml4 {5 # Usage : XIOS_sed_xml xml_file attribute value6 # In file xml_file modify at the line containing id="attribute" the attribute value ">value<"7 IGCM_debug_PushStack "XIOS_sed_xml"8 # Test if the fichier exist9 if [ ! -f ${1} ] ; then10 echo "WARNING : ${1} file does not exist. Following will not be done : XIOS_sed_xml : ${1} ${2} ${3}"11 IGCM_debug_PopStack "XIOS_sed_xml"12 return13 fi14 sed -e "s/\(<[^\"]*\"${2}\".*>\)\([^<]*\)\(<[^>]*\)/\1${3}\3/" ${1} > ${1}.tmp15 RET=$?16 echo "XIOS_sed_xml" : ${1} ${2} ${3}17 \mv ${1}.tmp ${1}18 IGCM_debug_PopStack "XIOS_sed_xml"19 return $RET20 }21 22 2 #----------------------------------- 23 3 function IOS_Initialize … … 37 17 echo UPDATE IOS !!! 38 18 # Activate server mode 39 XIOS_sed_xml iodef.xml using_servertrue19 IGCM_comp_modifyXmlfile force iodef.xml using_server NONE true 40 20 # If lmdz_UserChoices_XIOS=y add LMDZ as component id : 41 21 if [ X${lmdz_UserChoices_XIOS} = Xy ] ; then 42 XIOS_sed_xml iodef.xml oasis_codes_idLMDZ,oceanx22 IGCM_comp_modifyXmlFile force iodef.xml oasis_codes_id NONE LMDZ,oceanx 43 23 fi 44 24 if [ -f namcouple ] ; then
Note: See TracChangeset
for help on using the changeset viewer.