Skip to content

Commit

Permalink
Fix build library script for linux. (hyperledger-iroha#1289)
Browse files Browse the repository at this point in the history
* Fix javas build library script for linux.
* Add executable permissions for build_library.sh

Signed-off-by: Fedor Muratov <[email protected]>
  • Loading branch information
muratovv authored May 4, 2018
1 parent 039f74a commit 883389c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion example/java/build_library.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ mkdir dist

# build native library
./prepare.sh
cp build/shared_model/bindings/libirohajava.jnilib dist/libirohajava.jnilib

unamestr=`uname`
if [[ "$unamestr" == 'Linux' ]]; then
cp build/shared_model/bindings/libirohajava.so dist/libirohajava.so
elif [[ "$unamestr" == 'Darwin' ]]; then
cp build/shared_model/bindings/libirohajava.jnilib dist/libirohajava.jnilib
fi

# build jar
gradle jar
Expand Down

0 comments on commit 883389c

Please sign in to comment.