diff options
author | Michael Koch <konqueror@gmx.de> | 2005-01-13 11:25:56 +0000 |
---|---|---|
committer | Michael Koch <konqueror@gmx.de> | 2005-01-13 11:25:56 +0000 |
commit | b6fde24b643ca8d66a8728b914f571c79df68e0e (patch) | |
tree | f1a609662e1ab58917e60e2aa3e7f172d8c307cb /scripts | |
parent | 539766e522b4735a243f3da41d15019a29dab8e2 (diff) | |
download | classpath-b6fde24b643ca8d66a8728b914f571c79df68e0e.tar.gz |
2005-01-13 Michael Koch <konqueror@gmx.de>
* scripts/check_jni_methods.sh: Don't use GNU sed specific features.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check_jni_methods.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/check_jni_methods.sh b/scripts/check_jni_methods.sh index a49e71f15..6263cd9dd 100755 --- a/scripts/check_jni_methods.sh +++ b/scripts/check_jni_methods.sh @@ -8,14 +8,14 @@ TMPFILE3=`mktemp $pattern` || { echo >&2 "$0: Unable to make temp file; aborting # Find all methods defined in the header files generated # from the java source files. grep -h '^JNIEXPORT .* Java_' include/*.h | \ - sed -e 's,^JNIEXPORT .* JNICALL \(Java_\w*\) (.*$,\1,' | \ + sed -e 's,.*JNICALL \(Java_[a-z_A-Z0-9]*\).*$,\1,' | \ sort > $TMPFILE # Find all methods in the JNI C source files. find native/jni -name \*.c | \ xargs grep -h '^Java_' | \ - sed -e 's,^\(Java_\w*\) *(.*$,\1,' \ - | sort > $TMPFILE2 + sed -e 's,^\(Java_[a-z_A-Z0-9]*\) *(.*$,\1,' | \ + sort > $TMPFILE2 # Write temporary ignore file. cat > $TMPFILE3 << EOF |