summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2005-08-13 18:00:14 +0000
committerMark Wielaard <mark@klomp.org>2005-08-13 18:00:14 +0000
commit419ca3b0396fe1629b817c27398bd73b57ebe497 (patch)
treea794dc47d9ce976987341351f15d5346bc5abf26 /scripts
parentba6fc0db2682fd0c15c2a9788ccb63ec9ab66109 (diff)
downloadclasspath-419ca3b0396fe1629b817c27398bd73b57ebe497.tar.gz
* scripts/check_jni_methods.sh: Set and check for PROBLEM.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check_jni_methods.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/check_jni_methods.sh b/scripts/check_jni_methods.sh
index a5daa91f4..ff7754bb7 100755
--- a/scripts/check_jni_methods.sh
+++ b/scripts/check_jni_methods.sh
@@ -31,6 +31,7 @@ EOF
# Compare again silently.
if diff -ub -0 $TMPFILE $TMPFILE2 | grep '^[+-]Java' | grep -q -v -f $TMPFILE3;
then
+ PROBLEM=1
echo "Found a problem with the JNI methods declared and implemented."
echo "(-) missing in implementation, (+) missing in header files"
@@ -41,7 +42,7 @@ fi
# Cleanup.
rm -f $TMPFILE $TMPFILE2 $TMPFILE3
-if test "$RESULT" = "0" ; then
+if test "$PROBLEM" = "1" ; then
exit 1
fi