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.
Fcheck_script.sh in branches/DEV_r1879_FCM/NEMOGCM/TOOLS – NEMO

source: branches/DEV_r1879_FCM/NEMOGCM/TOOLS/Fcheck_script.sh @ 1985

Last change on this file since 1985 was 1972, checked in by flavoni, 14 years ago

Add TOOLS directory and scripts to compile with FCM, see ticket: #685

  • Property svn:executable set to *
File size: 680 bytes
Line 
1#!/bin/bash
2#set -x
3set -o posix
4#set -u
5#set -e
6#+
7#
8# ================
9# Fcheck_script.sh
10# ================
11#
12# --------------------------
13# Check
14# --------------------------
15#
16# SYNOPSIS
17# ========
18#
19# ::
20#
21#  $ Fcheck_script.sh
22#
23#
24# DESCRIPTION
25# ===========
26#
27#
28# Check if utilities are in the path
29#
30# EXAMPLES
31# ========
32#
33# ::
34#
35#  $ ./Fcheck_script.sh scriptname
36#
37#
38# TODO
39# ====
40#
41# option debug
42#
43#
44# EVOLUTIONS
45# ==========
46#
47# $Id$
48#
49#
50# - rblod 2010-06-20T16:11:47Z
51#
52#   * creation
53#
54#-
55
56myscript=`which $1`
57if [ ${#myscript} -eq 0 ]; then
58echo "WARNING !!!"
59echo "$1 has to be installed first"
60echo "Exiting......................"
61exit 1
62fi
63
64unset -v myscript
Note: See TracBrowser for help on using the repository browser.