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 3294 for trunk/NEMOGCM/TOOLS/COMPILE/Flist_archfile.sh – NEMO

Ignore:
Timestamp:
2012-01-28T17:44:18+01:00 (12 years ago)
Author:
rblod
Message:

Merge of 3.4beta into the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/TOOLS/COMPILE/Flist_archfile.sh

    r2520 r3294  
    1919# :: 
    2020# 
    21 #  $ Flist_archfile.sh 
     21#  $ Flist_archfile.sh Institute 
    2222# 
    2323# 
     
    3737#  $ ./Flist_archfile.sh  
    3838# 
     39#  $ ./Flist_archfile.sh CNRS 
    3940# 
    4041# TODO 
     
    5455# 
    5556#- 
     57 
     58if [ -n "$2" ]; then 
     59shift 
     60fi 
     61 
    5662echo "Available compilers for -m option :" 
    57 for file in `ls ${MAIN_DIR}/ARCH` 
     63for file in  $(ls ${MAIN_DIR}/ARCH | grep fcm ) 
    5864do 
    5965zvar1=${file#arch-} 
     
    6268printf "%-20s %s %-s\n" "${zvar1%.fcm}" : "${zvar2#\#}" 
    6369done 
     70 
     71 
     72if [ "$1" == "all" ]; then 
     73   for dir  in  $(ls ${MAIN_DIR}/ARCH | grep -v fcm ) 
     74   do  
     75      echo "Available compilers at ${dir} :" 
     76      for file in  $(ls ${MAIN_DIR}/ARCH/${dir} | grep  fcm ) 
     77      do 
     78      zvar1=${file#arch-} 
     79      zvar2=$(head -1 ${MAIN_DIR}/ARCH/${dir}/$file) 
     80      #echo "${zvar1%.fcm} : ${zvar2#\#}" 
     81      printf "%-20s %s %-s\n" "${zvar1%.fcm}" : "${zvar2#\#}" 
     82      done 
     83   done 
     84elif [ -d ${MAIN_DIR}/ARCH/${1} ]; then 
     85      echo "Available compilers at $1 :" 
     86      for file in  $(ls ${MAIN_DIR}/ARCH/$1 | grep fcm ) 
     87      do 
     88      zvar1=${file#arch-} 
     89      zvar2=$(head -1 ${MAIN_DIR}/ARCH/${1}/$file) 
     90      #echo "${zvar1%.fcm} : ${zvar2#\#}" 
     91      printf "%-20s %s %-s\n" "${zvar1%.fcm}" : "${zvar2#\#}" 
     92      done 
     93else 
     94      echo "Available consortium member sub-directories :" 
     95      for dir  in  $(ls ${MAIN_DIR}/ARCH | grep -v fcm ) 
     96      do 
     97         echo ${dir} 
     98      done 
     99      echo "use \"makenemo -h all\" or \"makenemo -m help\" to see compilers available in member's sub-directories" 
     100fi 
Note: See TracChangeset for help on using the changeset viewer.