mirror of
https://git.freebsd.org/ports.git
synced 2025-06-29 00:20:40 -04:00
patch files/patch-libjava-classpath-scripts-check_jni_methods.sh.in. Escapes of ordinary characters will be disallowed by regex(3) in the future. [1] While here already, factor out a proper USES block in the Makefile. [2] PR: 233443 [1] Submitted by: kevans [1] Reported by: portlint [2]
12 lines
604 B
Bash
12 lines
604 B
Bash
--- UTC
|
|
--- libjava/classpath/scripts/check_jni_methods.sh.in.orig 2018-11-23 15:02:00 UTC
|
|
+++ libjava/classpath/scripts/check_jni_methods.sh.in
|
|
@@ -29,7 +29,7 @@ find @abs_top_srcdir@/native/jni -name \*.cpp | \
|
|
find @abs_top_srcdir@/native/jni -name \*.cpp | \
|
|
xargs egrep -h '^(JNIEXPORT .* JNICALL )?Java_' | \
|
|
cut -f4 -d\ | \
|
|
- LC_ALL=C sed -e 's,^\JNIEXPORT .* JNICALL \(Java_[a-z_A-Z0-9]*\).*$,\1,' >> $TMPFILE2
|
|
+ LC_ALL=C sed -e 's,^JNIEXPORT .* JNICALL \(Java_[a-z_A-Z0-9]*\).*$,\1,' >> $TMPFILE2
|
|
mv $TMPFILE2 $TMPFILE3
|
|
LC_ALL=C sort -u $TMPFILE3 > $TMPFILE2
|
|
rm $TMPFILE3
|