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.
get_nemo in trunk/VALID – NEMO

source: trunk/VALID/get_nemo @ 697

Last change on this file since 697 was 697, checked in by ctlod, 17 years ago

NVTK installation

  • Property svn:executable set to *
File size: 771 bytes
Line 
1#!/bin/ksh
2######################################################
3# Author : Rachid benshila for ESOPA
4# Contact : opatlod@lodyc.jussieu.fr
5#
6# This script to copy  a file from NEMO in the current
7# directory
8#
9######################################################
10d_n=$(dirname $0); b_n=$(basename $0);
11d_file=$(dirname $1);b_file=$(basename $1);
12
13nemo_file=`find ${d_n}/../../modeles/NEMO/${d_file} -name ${b_file}` 
14set -A nemo_tab $nemo_file
15
16if [ ${#nemo_tab[*]} -gt 1 ] ; then
17echo 'Multiple occurence found'
18echo ${nemo_tab[*]}
19echo 'Please specify one directory'
20exit
21fi
22if [ ${#nemo_tab[*]} -eq 0 ] ; then
23echo 'No occurence found'
24echo 'exiting'
25exit
26fi
27if [ ${#nemo_tab[*]} -eq 1 ] ; then
28\cp ${nemo_file} .
29fi
30
31unset d_n
32unset b_n
33unset d_file
34unset b_file
Note: See TracBrowser for help on using the repository browser.