mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
You will want to 'make distclean' after this. I also removed libsecp; we use the one in in libwally anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
16 lines
435 B
Bash
Executable file
16 lines
435 B
Bash
Executable file
#!/bin/sh
|
|
|
|
sed_exe=$1
|
|
|
|
result="swig_java/src/com/blockstream/libwally/Wally.java"
|
|
|
|
mkdir -p `dirname $result`
|
|
|
|
# Merge the constants and JNI interface into Wally.java
|
|
grep -v '^}$' swig_java/wallycoreJNI.java | $sed_exe 's/wallycoreJNI/Wally/g' >$result
|
|
grep 'public final static' swig_java/wallycoreConstants.java >>$result
|
|
# Append our extra functionality
|
|
cat swig_java/jni_extra.java_in >>$result
|
|
|
|
# Clean up
|
|
rm -f swig_java/*.java
|