release.sh 627 B

12345678910111213141516171819202122232425262728293031
  1. rm -rf ./out/release
  2. mkdir ./out/release
  3. CXXFLAGS="-O3 -DNDEBUG" LDFLAGS="-O3" tools/setup/init.sh CXX=g++-8 -j 3
  4. CXXFLAGS="-O3 -DNDEBUG" LDFLAGS="-O3" make install PREFIX=out/release -j 3
  5. for dep in ./.dependencies/libsimple*
  6. do
  7. cd $dep
  8. make install_source PREFIX=../../out/release
  9. cd -
  10. done
  11. cd ./.dependencies/cpp_tools
  12. make install-includes PREFIX=../../out/release
  13. cd -
  14. make install PREFIX=./out/release
  15. make install_source PREFIX=./out/release
  16. cat Makefile > ./out/release/Makefile
  17. cp res/* out/release/bin/
  18. cd out/release/bin
  19. zip truwo * -r
  20. cd -
  21. cd out/release
  22. zip truwo_source Makefile source include -r
  23. cd -