Ignore:
Timestamp:
Aug 1, 2025, 4:02:57 PM (3 weeks ago)
Author:
afalco
Message:

Added a compilation option: -clean
Cleans current compilation directory (without deleting the rest).
Useful if you have plenty of binaries you want to keep but want to start a compilation from "scratch".
AF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/makelmdz_fcm

    r3836 r3872  
    88# options par defaut pour la commande make
    99########################################################################
     10
    1011
    1112dim="96x72x19"
     
    3233full=''
    3334libphy=false
     35clean=false
    3436
    3537arch_defined="FALSE"
     
    215217      libphy="true" ; shift ;;
    216218
     219      "-clean")
     220      clean="true" ; shift ;;
     221
    217222      "-arch")
    218223      arch=$2 ; arch_defined="TRUE" ; shift ; shift ;;
     
    978983}
    979984
     985if [[ $clean == "true" ]];then
     986    echo "-- Cleaning up folder $LIBOGCM/${arch}${SUFF_DIR} --"
     987    delete_dim_h
     988    rm -rf tmp_src
     989    rm -rf config
     990    rm -rf $LIBOGCM/${arch}${SUFF_DIR}
     991    exit 0
     992fi
     993
    980994./build_gcm ${fcm_path} -j $job $full || (echo "Build gcm failed."; delete_dim_h; exit 1)
    981995
Note: See TracChangeset for help on using the changeset viewer.