diff options
author | Araq <rumpf_a@web.de> | 2012-09-09 01:08:13 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-09-09 01:08:13 +0200 |
commit | 6d94e4590244fe6174181ca4d0928a06d5c6a257 (patch) | |
tree | f6ce86ef812cf00eee1c002fd104bbb3de7c6160 /examples/cross_calculator/android/scripts/jnibuild.sh | |
parent | d3d9d32c35ae6a841ad9e48da61e1a6e88b3904c (diff) | |
parent | 9c63d12cef05709c79ce6d0f6b0cffd0f2243fe7 (diff) | |
download | Nim-6d94e4590244fe6174181ca4d0928a06d5c6a257.tar.gz |
Merge branch 'master' of github.com:Araq/Nimrod
Diffstat (limited to 'examples/cross_calculator/android/scripts/jnibuild.sh')
-rwxr-xr-x | examples/cross_calculator/android/scripts/jnibuild.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/cross_calculator/android/scripts/jnibuild.sh b/examples/cross_calculator/android/scripts/jnibuild.sh new file mode 100755 index 000000000..8b61f20f7 --- /dev/null +++ b/examples/cross_calculator/android/scripts/jnibuild.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +# Force errors to fail script. +set -e + +# If we are running from inside the scripts subdir, get out. +if [ ! -d src ] +then + cd .. +fi + +# Ok, are we out now? +if [ -d src ] +then + javah -classpath bin/classes \ + -o jni/backend-jni.h \ + com.github.nimrod.crosscalculator.CrossCalculator +else + echo "Uh oh, bin/classes directory not found?" + echo "Try compiling your java code, or opening in eclipse." + exit 1 +fi |