Changeset 7646 for trunk/NEMOGCM/TOOLS/COMPILE/Fcheck_archfile.sh
- Timestamp:
- 2017-02-06T10:25:03+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/TOOLS/COMPILE/Fcheck_archfile.sh
r4162 r7646 166 166 167 167 #- do we need xios library? 168 if [ "$2" != "nocpp" ] 168 #- 2 cases: 169 #- in CONFIG directory looking for key_iomput 170 if [ "$1" == "arch_nemo.fcm" ] 169 171 then 170 use_iom=$( sed -e "s/#.*$//" ${COMPIL_DIR}/$2 | grep -c key_iomput ) 172 if [ "$2" != "nocpp" ] 173 then 174 use_iom=$( sed -e "s/#.*$//" ${COMPIL_DIR}/$2 | grep -c key_iomput ) 175 else 176 use_iom=0 177 fi 178 have_lxios=$( sed -e "s/#.*$//" ${COMPIL_DIR}/$1 | grep -c "\-lxios" ) 179 if [[ ( $use_iom -eq 0 ) && ( $have_lxios -ge 1 ) ]] 180 then 181 sed -e "s/-lxios//g" ${COMPIL_DIR}/$1 > ${COMPIL_DIR}/tmp$$ 182 mv -f ${COMPIL_DIR}/tmp$$ ${COMPIL_DIR}/$1 183 fi 184 #- in TOOLS directory looking for USE xios 171 185 else 172 use_iom= 0173 fi 174 have_lxios=$( sed -e "s/#.*$//" ${COMPIL_DIR}/$1 | grep -c "\-lxios" ) 175 if [[ ( $use_iom -eq 0 ) && ( $have_lxios -ge 1 ) ]] 176 then 177 sed -e "s/-lxios//g" ${COMPIL_DIR}/$1 > ${COMPIL_DIR}/tmp$$178 mv -f ${COMPIL_DIR}/tmp$$ ${COMPIL_DIR}/$1186 use_iom=$( egrep --exclude-dir=.svn -r USE ${NEW_CONF}/src/* | grep -c xios ) 187 have_lxios=$( sed -e "s/#.*$//" ${COMPIL_DIR}/$1 | grep -c "\-lxios" ) 188 if [[ ( $use_iom -eq 0 ) || ( $have_lxios != 1 ) ]] 189 then 190 sed -e "s/-lxios//g" ${COMPIL_DIR}/$1 > ${COMPIL_DIR}/tmp$$ 191 mv -f ${COMPIL_DIR}/tmp$$ ${COMPIL_DIR}/$1 192 fi 179 193 fi 180 194
Note: See TracChangeset
for help on using the changeset viewer.