Changeset 2300 for CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/xios.driver
- Timestamp:
- 07/22/14 16:38:56 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/xios.driver
r2270 r2300 1 1 #!/bin/ksh 2 3 function XIOS_sed_xml 4 { 5 # Usage : XIOS_sed_xml xml_file attribute value 6 # In file xml_file modify at the line containing id="attribute" the attribute value ">value<" 7 8 # Test if the fichier exist 9 if [ ! -f ${1} ] ; then 10 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 return 13 fi 14 sed -e "s/\(<[^\"]*\"${2}\".*>\)\([^<]*\)\(<[^>]*\)/\1${3}\3/" ${1} > ${1}.tmp 15 RET=$? 16 echo "XIOS_sed_xml" : ${1} ${2} ${3} 17 \mv ${1}.tmp ${1} 18 19 return $RET 20 } 2 21 3 22 #----------------------------------- … … 17 36 18 37 echo UPDATE IOS !!! 19 20 sed -e 's/<variable id="using_server" type="boolean">false/<variable id="using_server" type="boolean">true/' iodef.xml > iodef.xml.tmp 21 IGCM_sys_Mv iodef.xml.tmp iodef.xml 38 # Activate server mode 39 XIOS_sed_xml iodef.xml using_server true 40 # If lmdz_UserChoices_XIOS=y add LMDZ as component id : 41 if [ X${lmdz_UserChoices_XIOS} = Xy ] ; then 42 XIOS_sed_xml iodef.xml oasis_codes_id LMDZ,oceanx 43 fi 22 44 if [ -f namcouple ] ; then 23 45 sed -e "s/2 LMDZ oceanx/3 LMDZ oceanx ${config_Executable_IOS[1]}/" namcouple > namcouple.tmp
Note: See TracChangeset
for help on using the changeset viewer.