New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 11985 for utils/build – NEMO

Changeset 11985 for utils/build


Ignore:
Timestamp:
2019-11-27T15:01:24+01:00 (4 years ago)
Author:
mathiot
Message:

mk_ENHANCE-03_domcfg: fix issue when compiling tools without cpp_TOOLS.fcm file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/build/mk_ENHANCE-03_domcfg/Fmake_tools_bld.sh

    r11981 r11985  
    6161[ ! -d ${3}/${2}/BLD ] && \mkdir ${3}/${2}/BLD 
    6262[ ! -d ${1}/${2}/BLD ] && ln -sf ${3}/${2}/BLD ${1}/${2}/BLD 
    63 [ -f ${1}/${NEW_CONF}/cpp_${NEW_CONF}.fcm ] && ln -sf ${1}/${NEW_CONF}/cpp_${NEW_CONF}.fcm ${COMPIL_DIR}/cpp_tools.fcm 
     63# enforce presence of cpp_tools.fcm (write a blank one if not present in the tools directory) 
     64# cp instead of ln to avoid overwiting previous tool cpp_XXX.fcm file when compiling a file without cpp_YYY.fcm file. 
     65[ -f ${1}/${NEW_CONF}/cpp_${NEW_CONF}.fcm ] && cp -f ${1}/${NEW_CONF}/cpp_${NEW_CONF}.fcm ${COMPIL_DIR}/cpp_tools.fcm || echo 'bld::tool::fppkeys ' > ${COMPIL_DIR}/cpp_tools.fcm 
    6466rm -f  ${1}/${NEW_CONF}/BLD/fcm.bld.lock 
Note: See TracChangeset for help on using the changeset viewer.