Last change
on this file since 1063 was
1062,
checked in by maronga, 12 years ago
|
updates in nc2vdf
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
File size:
1.7 KB
|
Line | |
---|
1 | #!/bin/ksh |
---|
2 | #------------------------------------------------------------------------------# |
---|
3 | # Current revisions: |
---|
4 | # ----------------- |
---|
5 | # |
---|
6 | # Former revisions: |
---|
7 | # ----------------- |
---|
8 | # $Id: nc2vdf 1062 2012-11-21 15:57:18Z maronga $ |
---|
9 | # |
---|
10 | # Description: |
---|
11 | # ------------ |
---|
12 | # Starting script for nc2vdf |
---|
13 | #------------------------------------------------------------------------------# |
---|
14 | |
---|
15 | check_muk=false |
---|
16 | check_hlrn=false |
---|
17 | check_workstation=false |
---|
18 | sys="unknown" |
---|
19 | |
---|
20 | |
---|
21 | echo "*** checking hostname..." |
---|
22 | if [ $(expr "$HOSTNAME" : ".*muk.uni-hannover.de") -gt 0 ] |
---|
23 | then |
---|
24 | check_muk=true |
---|
25 | fi |
---|
26 | |
---|
27 | if [ $(expr "$HOSTNAME" : ".*hicegate2") -gt 0 ] |
---|
28 | then |
---|
29 | check_hlrn=true |
---|
30 | fi |
---|
31 | if [ $(expr "$HOSTNAME" : ".*bicegate2") -gt 0 ] |
---|
32 | then |
---|
33 | check_hlrn=true |
---|
34 | fi |
---|
35 | if [ $(expr "$HOSTNAME" : ".*huv") -gt 0 ] |
---|
36 | then |
---|
37 | check_hlrn=true |
---|
38 | fi |
---|
39 | if [ $(expr "$HOSTNAME" : ".*buv") -gt 0 ] |
---|
40 | then |
---|
41 | check_hlrn=true |
---|
42 | fi |
---|
43 | # if [ $(expr "$HOSTNAME" : "") -eq 1 ] ### insert $HOSTNAME of your workstation here if you are not running vapor on one of the systems above |
---|
44 | # then |
---|
45 | # check_workstation=true |
---|
46 | # fi |
---|
47 | |
---|
48 | |
---|
49 | |
---|
50 | if [ $check_muk == "true" ] |
---|
51 | then |
---|
52 | sys="IMUK" |
---|
53 | . /muksoft/packages/vapor/2.1.0/bin/vapor-setup.sh |
---|
54 | fi |
---|
55 | |
---|
56 | if [ $check_hlrn == "true" ] |
---|
57 | then |
---|
58 | sys="HLRN" |
---|
59 | . /usr/share/modules/init/ksh |
---|
60 | module load vapor |
---|
61 | module load ncl |
---|
62 | fi |
---|
63 | |
---|
64 | if [ $check_workstation == "true" ] |
---|
65 | then |
---|
66 | sys="workstation" |
---|
67 | fi |
---|
68 | |
---|
69 | if [ $sys == "unknown" ] |
---|
70 | then |
---|
71 | echo "+++ unknown system." |
---|
72 | #exit 0 |
---|
73 | else |
---|
74 | echo "*** nc2vdf will execute at $sys" |
---|
75 | fi |
---|
76 | |
---|
77 | if which nc2vdf.ncl >/dev/null; then |
---|
78 | ncl $PALM_BIN/nc2vdf.ncl "inputfile= \"$1\"" |
---|
79 | else |
---|
80 | echo " +++ nc2vdf.ncl not found." |
---|
81 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.