source: branches/nemo_v3_3_beta/NEMOGCM/TOOLS/COMPILE/Flist_archfile.sh @ 2520

Last change on this file since 2520 was 2520, checked in by rblod, 11 years ago

Add in core documentation for compilation scripts

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 789 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# 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#
40# TODO
41# ====
42#
43# option debug
44#
45#
46# EVOLUTIONS
47# ==========
48#
49# $Id$
50#
51#
52#
53#   * creation
54#
55#-
56echo "Available compilers for -m option :"
57for file in `ls ${MAIN_DIR}/ARCH`
58do
59zvar1=${file#arch-}
60zvar2=$(head -1 ${MAIN_DIR}/ARCH/$file)
61#echo "${zvar1%.fcm} : ${zvar2#\#}"
62printf "%-20s %s %-s\n" "${zvar1%.fcm}" : "${zvar2#\#}"
63done
Note: See TracBrowser for help on using the repository browser.