Using JAVA_HOME to determine jni.h location.
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 7 Apr 2008 09:33:46 +0000 (11:33 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 7 Apr 2008 09:33:46 +0000 (11:33 +0200)
libyaz4j/build.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index d23d1d8..05768a5
@@ -1,8 +1,5 @@
 #!/bin/bash
-
-JNI_DIR=$( find / -type f -name jni.h 2>/dev/null | xargs dirname );
-
-echo using JNI include directory - $JNI_DIR;
+JNI_DIR=${JAVA_HOME}/include
 
 swig -I"include" -I"../dependencies/yaz-2.1.28/include/yaz/" -outdir ../src/org/yaz4j/jni -package org.yaz4j.jni -o src/libyaz4j.cpp -c++ -java libyaz4j.i