source: branches/DEV_r1879_FCM/NEMOGCM/TOOLS/COMPILE/Fcheck_archfile.sh @ 2136

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

add compilation of tools like rebuild or nesting tools

  • Property svn:executable set to *
File size: 909 bytes
Line 
1#!/bin/bash
2#set -x
3set -o posix
4#set -u
5#set -e
6#+
7#
8# ==================
9# Fcheck_archfile.sh
10# ==================
11#
12# --------------------------
13# Check the compilation file
14# --------------------------
15#
16# SYNOPSIS
17# ========
18#
19# ::
20#
21#  $ Fcheck_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#  $ ./Fcheck_archfile.sh ARCHFILE COMPILER
41#
42#
43# TODO
44# ====
45#
46# option debug
47#
48#
49# EVOLUTIONS
50# ==========
51#
52# $Id$
53#
54#
55# - rblod 2010-06-20T16:11:47Z
56#
57#   * creation
58#
59#-
60
61if [ ${#2} -eq 0 ]; then
62   if [ ! -f ${COMPIL_DIR}/$1 ]; then
63   echo "Warning !!!"
64   echo "NO compiler chosen"
65   echo "Try makenemo_fcm -h for help"
66   echo "EXITING..."
67   exit 1
68   fi
69else
70   ln -sf ${MAIN_DIR}/ARCH/arch-${2}.fcm ${COMPIL_DIR}/$1
71fi
Note: See TracBrowser for help on using the repository browser.