Skip to content

Commit

Permalink
Move release script
Browse files Browse the repository at this point in the history
  • Loading branch information
iamyulong committed Feb 8, 2018
1 parent 74fb6f0 commit 18af3cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
1 change: 0 additions & 1 deletion dist/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
*
# Except this file
!.gitignore
!release.sh
16 changes: 7 additions & 9 deletions dist/release.sh → scripts/release.sh
Original file line number Diff line number Diff line change
@@ -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 .
Expand All @@ -18,18 +21,13 @@ 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 .
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
Expand All @@ -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

0 comments on commit 18af3cd

Please sign in to comment.