0023097: MFC Samples do not compile after redesigning the TKOpenGl driver
[occt.git] / samples / java / build.csh
CommitLineData
7fd59977 1#!/bin/csh -f
2
3setenv STATION `uname -s`
4if (${STATION} == "IRIX64") setenv STATION IRIX
5
6setenv SAMPLE_ROOT `pwd`
7
8cd $STATION
9
10if ( ! -d obj ) then
11 mkdir obj
12endif
13
14if ( ! -d classes ) then
15 mkdir classes
16endif
17if ( !($?JAVAHOME) ) then
18 echo -n "JAVAHOME not setted . Please define it : "
19 set res = $<
20 setenv JAVAHOME ${res}
21else
22 setenv JDK ${JAVAHOME}
23endif
24
25${JAVAHOME}/bin/javac -d classes ${CASROOT}/src/jcas/*.java ${SAMPLE_ROOT}/java/CASCADESamplesJni/*.java ${SAMPLE_ROOT}/java/SampleGeometryJni/*.java ${SAMPLE_ROOT}/java/SamplesTopologyJni/*.java ${SAMPLE_ROOT}/java/SampleViewer3DJni/*.java ${SAMPLE_ROOT}/java/SampleAISBasicJni/*.java ${SAMPLE_ROOT}/java/SampleAISDisplayModeJni/*.java ${SAMPLE_ROOT}/java/SampleAISSelectJni/*.java ${SAMPLE_ROOT}/java/SampleDisplayAnimationJni/*.java ${SAMPLE_ROOT}/java/SampleImportExportJni/*.java ${SAMPLE_ROOT}/java/SampleHLRJni/*.java ${SAMPLE_ROOT}/java/util/*.java ${SAMPLE_ROOT}/java/util/x11/*.java ${SAMPLE_ROOT}/java/*.java
26
27${JAVAHOME}/bin/jar -cf CASCADESamples.jar -C classes/ .
28
29rm -R classes