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.
Flist_archfile.sh in utils/build/mk – NEMO

source: utils/build/mk/Flist_archfile.sh @ 9651

Last change on this file since 9651 was 9651, checked in by nicolasmartin, 6 years ago

Reorganisation plan for NEMO repository: add missing modifications from previous commit

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1#!/bin/bash
2#set -x
3set -o posix
4#set -u
5#set -e
6#+
7#
8# ==================
9# Flist_archfile.sh
10# ==================
11#
12# --------------------------
13# Check the compilation file
14# --------------------------
15#
16# SYNOPSIS
17# ========
18#
19# ::
20#
21#  $ Flist_archfile.sh Institute
22#
23#
24# DESCRIPTION
25# ===========
26#
27#
28# List arch file available.
29# The first line of each file in NEMO/arch directory is echoed. 
30#
31#
32# EXAMPLES
33# ========
34#
35# ::
36#
37#  $ ./Flist_archfile.sh
38#
39#  $ ./Flist_archfile.sh CNRS
40#
41# TODO
42# ====
43#
44# option debug
45#
46#
47# EVOLUTIONS
48# ==========
49#
50# $Id$
51#
52#
53#
54#   * creation
55#
56#-
57
58archfile_loop() {
59
60   for file in $( ls $1/*.fcm ); do
61      zvar1=$( basename $file | sed 's/arch-\(.*\).fcm/\1/' )
62      zvar2=$( head -1  $file | tr -d '#'                   )
63      printf "%-30s %-s\n" ${zvar1} "${zvar2}"
64   done
65
66}
67
68echo -e "\n  ¤ Generic computing architectures"
69
70archfile_loop ${MAIN_DIR}/arch
71
72for dir in $( ls ${MAIN_DIR}/arch | grep -v "fcm$" ); do
73   echo -e "\n  ¤ Specific HPC architectures for "${dir}
74   archfile_loop ${MAIN_DIR}/arch/$dir
75done
76
77echo
Note: See TracBrowser for help on using the repository browser.