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 11134 for branches/UKMO/r6232_collate_bgc_diagnostics/NEMOGCM/CONFIG/makenemo – NEMO

Ignore:
Timestamp:
2019-06-18T17:48:39+02:00 (5 years ago)
Author:
jcastill
Message:

Full set of changes as in the original branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/r6232_collate_bgc_diagnostics/NEMOGCM/CONFIG/makenemo

    r11132 r11134  
    360360    cd ${NEMO_TDIR}/${NEW_CONF} || cd - 
    361361 
     362    #- 
     363    #- Get git version information if available 
     364    mkdir -p ${CONFIG_DIR}/${NEW_CONF}/BLD/inc 
     365    GITVERSIONHEADER=${CONFIG_DIR}/${NEW_CONF}/BLD/inc/gitversion.h90 
     366    echo "Extracting git commit info into" $GITVERSIONHEADER 
     367    NEMOCOMMIT=$( git describe --always --dirty ) 
     368    if [ $? -ne 0 ] 
     369    then 
     370       echo "Unable to extract git commit info!" 
     371       NEMOCOMMIT="NOT AVAILABLE" 
     372    fi 
     373    echo "#define _NEMO_COMMIT_ID_ '${NEMOCOMMIT}'" > ${GITVERSIONHEADER} 
     374    NEMOBRANCH=$( git name-rev --name-only HEAD ) 
     375    if [ $? -ne 0 ] 
     376    then 
     377       echo "Unable to extract git branch info!" 
     378       NEMOBRANCH="UNKNOWN" 
     379    fi 
     380    echo "#define _NEMO_BRANCH_ '${NEMOBRANCH}'" >> ${GITVERSIONHEADER} 
     381 
    362382#if AGRIF we do a first preprocessing 
    363383    if [ ${#x_c} -eq 0 ]; then 
Note: See TracChangeset for help on using the changeset viewer.