0023227: New Draw Harness command to estimate current geometry complexity of OpenGL...
[occt.git] / samples / java / run.csh
CommitLineData
7fd59977 1#!/bin/csh -f
2
3setenv STATION `uname`
4
5if (${STATION} == "IRIX64") setenv STATION IRIX
6
7## CASCADE part
8
9if (! ($?CASROOT)) then
10 echo -n "Please define CASROOT to the folder containing OpenCascade '"'src'"', '"'drv'"' and '"'inc'"' folders. : "
11 set res = $<
12 setenv CASROOT ${res}
13endif
14
15if (! -d ${STATION}/obj) then
16 setenv JAVAHOME "${CASROOT}/../3rdparty/${STATION}/java"
17endif
18
19if ( !($?JAVAHOME) ) then
20 echo -n "JAVAHOME not setted . Please define it : "
21 set res = $<
22 setenv JAVAHOME ${res}
23else
24 setenv JDK ${JAVAHOME}
25endif
26
27## Common part
28if (!($?LD_LIBRARY_PATH)) then
29 setenv LD_LIBRARY_PATH ""
30endif
31cd java
32setenv LD_LIBRARY_PATH "${cwd}:${cwd}/../${STATION}:${cwd}/../${STATION}/lib:${CASROOT}/${STATION}/lib:${LD_LIBRARY_PATH}"
33
34## Start up
35echo 'LD_LIBRARY_PATH = ' $LD_LIBRARY_PATH
36${JAVAHOME}/bin/java -classpath .:${cwd}/../${STATION}/CASCADESamples.jar SamplesStarter
37
38
39