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 branches/DEV_r1879_FCM/NEMOGCM/TOOLS/COMPILE – NEMO

source: branches/DEV_r1879_FCM/NEMOGCM/TOOLS/COMPILE/Flist_archfile.sh @ 2143

Last change on this file since 2143 was 2143, checked in by rblod, 14 years ago

Improvement of FCM branch

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 837 bytes
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
22#
23#
24# DESCRIPTION
25# ===========
26#
27#
28# Check the choice of the compiler.
29# Three cases : 
30
31# - There was a previous choice
32# - A new one has be specified
33# - No information, exit
34#
35# EXAMPLES
36# ========
37#
38# ::
39#
40#  $ ./Flist_archfile.sh
41#
42#
43# TODO
44# ====
45#
46# option debug
47#
48#
49# EVOLUTIONS
50# ==========
51#
52# $Id$
53#
54#
55#
56#   * creation
57#
58#-
59echo "Available compilers for -m option :"
60for file in `ls ${MAIN_DIR}/ARCH`
61do
62zvar1=${file#arch-}
63zvar2=$(head -1 ${MAIN_DIR}/ARCH/$file)
64#echo "${zvar1%.fcm} : ${zvar2#\#}"
65printf "%-20s %s %-s\n" "${zvar1%.fcm}" : "${zvar2#\#}"
66done
Note: See TracBrowser for help on using the repository browser.