source: palm/trunk/SCRIPTS/nc2vdf @ 1055

Last change on this file since 1055 was 1046, checked in by maronga, 12 years ago

put scripts and utilities under GPL

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1#!/bin/ksh
2#------------------------------------------------------------------------------#
3# Current revisions:
4# -----------------
5#
6# Former revisions:
7# -----------------
8# $Id: nc2vdf 1046 2012-11-09 14:38:45Z hoffmann $
9#
10# Description:
11# ------------
12# Starting script for nc2vdf
13#------------------------------------------------------------------------------#
14
15    check_muk=false
16    check_hlrn=false
17    sys="unknown"
18
19
20    echo "*** checking hostname..."
21    if [ $(expr "$HOSTNAME" : ".*muk.uni-hannover.de") -gt 0 ]
22    then
23       check_muk=true
24    fi
25
26    if [ $(expr "$HOSTNAME" : ".*hicegate2") -gt 0 ]
27    then
28       check_hlrn=true
29    fi
30    if [ $(expr "$HOSTNAME" : ".*bicegate2") -gt 0 ]
31    then
32       check_hlrn=true
33    fi
34    if [ $(expr "$HOSTNAME" : ".*huv") -gt 0 ]
35    then
36       check_hlrn=true
37    fi
38    if [ $(expr "$HOSTNAME" : ".*buv") -gt 0 ]
39    then
40       check_hlrn=true
41    fi
42
43
44    if [ $check_muk == "true" ]
45    then
46       sys="IMUK"
47       . /muksoft/packages/vapor/2.1.0/bin/vapor-setup.sh
48    fi
49
50    if [ $check_hlrn == "true" ]
51    then
52       sys="HLRN"
53       . /usr/share/modules/init/ksh
54       module load vapor
55       module load ncl
56    fi
57
58    if [ $sys == "unknown" ]
59    then
60       echo "+++ unknown system. Exiting..."
61       exit 0
62    else
63       echo "*** nc2vdf will execute at $sys"
64    fi
65
66    if which nc2vdf.ncl >/dev/null; then
67       ncl $PALM_BIN/nc2vdf.ncl "inputfile= \"$1\""
68    else
69       echo "  +++ nc2vdf.ncl not found."
70    fi
Note: See TracBrowser for help on using the repository browser.