diff --git a/dist/.gitignore b/dist/.gitignore index f35a8c9..5e7d273 100644 --- a/dist/.gitignore +++ b/dist/.gitignore @@ -2,4 +2,3 @@ * # Except this file !.gitignore -!release.sh diff --git a/dist/release.sh b/scripts/release.sh similarity index 79% rename from dist/release.sh rename to scripts/release.sh index d67c278..f2cd6ba 100755 --- a/dist/release.sh +++ b/scripts/release.sh @@ -1,8 +1,11 @@ #!/bin/sh -# build fastvm and java bindings -cd .. && make && cd dist -cd .. && make jni && cd dist +cd "$(dirname "$0")/.." + +# build fastvm and solidity compiler +make +make jni +cd solidity && make && cd ../dist # copy LLVM library cp /usr/lib/x86_64-linux-gnu/libLLVM-4.0.so.1 . @@ -18,10 +21,6 @@ END tar -czf fastvm_v0.0.0.tar.gz file.list libLLVM-4.0.so.1 libevmjit.so libfastvm.so - -# build compiler -cd ../solidity && make && cd ../dist - # copy libraries cp /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0 . cp /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.58.0 . @@ -29,7 +28,6 @@ cp /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.58.0 . cp /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 . cp /usr/lib/x86_64-linux-gnu/libjsoncpp.so.1 . - # construct the file list tee file.list << END libboost_filesystem.so.1.58.0 @@ -40,4 +38,4 @@ libjsoncpp.so.1 END # make archieve -tar -czf compiler_v0.0.0.tar.gz file.list libboost* libjsoncpp.so.1 solc +tar -czf solidity_v0.0.0.tar.gz file.list libboost* libjsoncpp.so.1 solc