source: trunk/FACT++/dim_v19r17/setup.sh@ 10376

Last change on this file since 10376 was 10358, checked in by tbretz, 14 years ago
New DIM version.
File size: 1.9 KB
Line 
1#
2# bash version of .setup file coming with dim distribution
3# Tested on Linux 7.3 by A.Formica
4#
5POSSOSVALUES=HP-UX,AIX,OSF1,SunOS,Solaris,LynxOS,Linux,Darwin
6echo $POSSOSVALUES
7if [ ! -z $OS ]; then
8 echo OS is set to $OS
9 TEMP=$OS
10 echo $POSSOSVALUES | grep $TEMP > /dev/null
11 if [ $? != 0 ]; then
12 echo "Unknown OS... setup failed"
13 echo "Possible values are: $POSSOSVALUES"
14 return 1
15 fi
16else
17 echo "Variable OS must be defined... setup failed"
18 echo "Possible values are: $POSSOSVALUES"
19 return 1
20fi
21
22if [ "${OS}" == "Solaris" ]; then
23 path=(/usr/ccs/bin:$path)
24 echo "Update path " $path
25fi
26
27if [ ! -z $DIMDIR ]; then
28 echo DIMDIR is set to $DIMDIR
29else
30 export DIMDIR=`pwd`
31 echo DIMDIR is set to $DIMDIR
32fi
33
34if [ ! -z $ODIR ]; then
35 echo ODIR is set to $ODIR
36else
37 echo "ODIR not defined"
38 case $OS in
39 HP) export ODIR=hp;;
40 AIX) export ODIR=aix;;
41 OSF1) export ODIR=osf;;
42 SunOS) export ODIR=sunos;;
43 Solaris) export ODIR=solaris;;
44 LynxOS) export ODIR=lynxos;;
45 Linux) export ODIR=linux;;
46 Darwin) export ODIR=darwin;;
47 *) echo "Unknown OS... setup failed"; return 1;;
48 esac
49 echo "...setting ODIR to $ODIR"
50fi
51
52if [ "${OS}" == "Linux" ]; then
53if [ -z $LD_LIBRARY_PATH ]; then
54 export LD_LIBRARY_PATH=${DIMDIR}/${ODIR}
55else
56 export LD_LIBRARY_PATH=${DIMDIR}/${ODIR}:$LD_LIBRARY_PATH
57fi
58fi
59
60alias TestServer=$DIMDIR/$ODIR/testServer
61alias TestClient=$DIMDIR/$ODIR/testClient
62alias Test_server=$DIMDIR/$ODIR/test_server
63alias Test_client=$DIMDIR/$ODIR/test_client
64alias Dns=$DIMDIR/$ODIR/dns
65alias Dim_get_service=$DIMDIR/$ODIR/dim_get_service
66alias Dim_send_command=$DIMDIR/$ODIR/dim_send_command
67alias DimBridge=$DIMDIR/$ODIR/DimBridge
68alias Did=$DIMDIR/$ODIR/did
69
70if [ ! -d $DIMDIR/$ODIR ]; then
71 mkdir $DIMDIR/$ODIR
72 echo Created Directory: $DIMDIR/$ODIR
73fi
74
Note: See TracBrowser for help on using the repository browser.