Last change
on this file since 30246 was 30246, checked in by jmt12, 9 years ago |
Added in commands to install the TDB libraries in the correct place for Greenstone3 to find
|
File size:
1.2 KB
|
Line | |
---|
1 | <project name="tdb" basedir="." default="compile">
|
---|
2 | <echo>os.name: ${os.name}</echo>
|
---|
3 | <property environment="env"/>
|
---|
4 | <!-- Eventually install.lib needs to be OS aware -->
|
---|
5 | <property name="installdir" value="${basedir}/linux"/>
|
---|
6 | <property name="install.lib" value="${basedir}/linux/lib"/>
|
---|
7 | <property name="lib.jni" value="${basedir}/../../lib/jni"/>
|
---|
8 |
|
---|
9 | <target name="compile">
|
---|
10 | <exec executable="/bin/bash">
|
---|
11 | <arg value="-c"/>
|
---|
12 | <arg value="source setup.bash ; ./CASCADE-MAKE.sh"/>
|
---|
13 | </exec>
|
---|
14 | </target>
|
---|
15 |
|
---|
16 | <target name="clean" depends="uninstall">
|
---|
17 | <exec executable="/bin/bash">
|
---|
18 | <arg value="-c"/>
|
---|
19 | <arg value="./CASCADE-MAKE.sh distclean"/>
|
---|
20 | </exec>
|
---|
21 | <delete dir="${installdir}"/>
|
---|
22 | </target>
|
---|
23 |
|
---|
24 | <target name="install" depends="compile">
|
---|
25 | <echo>Install the TDBJava files into lib/jbi</echo>
|
---|
26 | <copy file="${install.lib}/TDBJava.jar" todir="${lib.jni}"/>
|
---|
27 | <copy file="${install.lib}/libTDBJava.so" todir="${lib.jni}"/>
|
---|
28 | <copy file="${install.lib}/libtdb.so" todir="${lib.jni}"/>
|
---|
29 | </target>
|
---|
30 |
|
---|
31 | <target name="uninstall">
|
---|
32 | <delete file="${lib.jni}/TDBJava.jar" />
|
---|
33 | <delete file="${lib.jni}/libTDBJava.so" />
|
---|
34 | <delete file="${lib.jni}/libtdb.so" />
|
---|
35 | </target>
|
---|
36 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.