source: Evidence/DIM/.setup@ 142

Last change on this file since 142 was 127, checked in by ogrimm, 15 years ago
First commit of Evidence control system core components
File size: 1.8 KB
Line 
1
2set POSSOSVALUES = HP-UX,AIX,OSF1,SunOS,Solaris,LynxOS,Linux,Darwin,
3if ($?OS) then
4 echo OS is set to $OS
5 set TEMP = $OS,
6 echo $POSSOSVALUES | grep $TEMP>/dev/null
7 if ( ! $status == 0) then
8 echo Unknown OS... setup failed
9 echo Possible values are: $POSSOSVALUES
10 exit 1
11 endif
12else
13 echo Variable OS must be defined... setup failed
14 echo Possible values are: $POSSOSVALUES
15 exit 1
16endif
17
18if ( ${OS} == Solaris ) then
19 set path = (/usr/ccs/bin $path)
20endif
21
22if ($?DIMDIR) then
23 echo DIMDIR is set to $DIMDIR
24else
25 setenv DIMDIR `pwd`
26 echo DIMDIR is set to $DIMDIR
27endif
28
29if ($?ODIR) then
30 echo ODIR is set to $ODIR
31 goto finish
32endif
33
34switch ($OS)
35 case HP-UX:
36 setenv ODIR hp
37 breaksw
38 case AIX:
39 setenv ODIR aix
40 breaksw
41 case OSF1:
42 setenv ODIR osf
43 breaksw
44 case SunOS:
45 setenv ODIR sunos
46 breaksw
47 case Solaris
48 setenv ODIR solaris
49 breaksw
50 case LynxOS:
51 setenv ODIR lynxos
52 breaksw
53 case Linux:
54 setenv ODIR linux
55 breaksw
56 case Darwin:
57 setenv ODIR darwin
58 breaksw
59 default:
60 echo Unknown OS... setup failed
61 exit 1
62endsw
63
64echo ODIR is set to $ODIR
65
66finish:
67if ( ${OS} == Linux ) then
68if (! $?LD_LIBRARY_PATH) then
69 setenv LD_LIBRARY_PATH $DIMDIR/$ODIR
70else
71 setenv LD_LIBRARY_PATH $DIMDIR/$ODIR\:$LD_LIBRARY_PATH
72endif
73endif
74
75alias TestServer $DIMDIR/$ODIR/testServer
76alias TestClient $DIMDIR/$ODIR/testClient
77alias Test_server $DIMDIR/$ODIR/test_server
78alias Test_client $DIMDIR/$ODIR/test_client
79alias Dns $DIMDIR/$ODIR/dns
80alias Dim_get_service $DIMDIR/$ODIR/dim_get_service
81alias Dim_send_command $DIMDIR/$ODIR/dim_send_command
82alias DimBridge $DIMDIR/$ODIR/DimBridge
83alias Did $DIMDIR/$ODIR/did
84
85if (! -d $DIMDIR/$ODIR) then
86 mkdir $DIMDIR/$ODIR
87 echo Created Directory: $DIMDIR/$ODIR
88endif
89exit
90
91
92
Note: See TracBrowser for help on using the repository browser.