40 |
EOF |
EOF |
41 |
|
|
42 |
# Compare again silently. |
# Compare again silently. |
43 |
if diff -b -U 0 $TMPFILE $TMPFILE2 | grep '^[+-]Java' | grep -q -v -f $TMPFILE3; |
# Use fgrep and direct the output to /dev/null for compatibility with older |
44 |
|
# grep instead of using the non portable -q. |
45 |
|
if diff -b -U 0 $TMPFILE $TMPFILE2 | grep '^[+-]Java' | \ |
46 |
|
fgrep -v -f $TMPFILE3 > /dev/null; |
47 |
then |
then |
48 |
PROBLEM=1 |
PROBLEM=1 |
49 |
echo "Found a problem with the JNI methods declared and implemented." |
echo "Found a problem with the JNI methods declared and implemented." |
50 |
echo "(-) missing in implementation, (+) missing in header files" |
echo "(-) missing in implementation, (+) missing in header files" |
51 |
|
|
52 |
# Compare the found method lists. |
# Compare the found method lists. |
53 |
diff -b -U 0 $TMPFILE $TMPFILE2 | grep '^[+-]Java' | grep -v -f $TMPFILE3 |
diff -b -U 0 $TMPFILE $TMPFILE2 | grep '^[+-]Java' | fgrep -v -f $TMPFILE3 |
54 |
fi |
fi |
55 |
|
|
56 |
# Cleanup. |
# Cleanup. |
61 |
fi |
fi |
62 |
|
|
63 |
exit 0 |
exit 0 |
|
|
|