/[classpath]/classpath/scripts/check_jni_methods.sh
ViewVC logotype

Diff of /classpath/scripts/check_jni_methods.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by mark, Wed Aug 17 10:15:51 2005 UTC revision 1.10 by andreast, Mon Sep 5 18:46:16 2005 UTC
# Line 40  cat > $TMPFILE3 << EOF Line 40  cat > $TMPFILE3 << EOF
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.
# Line 58  if test "$PROBLEM" = "1" ; then Line 61  if test "$PROBLEM" = "1" ; then
61  fi  fi
62    
63  exit 0  exit 0
   

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26