buildlinux.sh 546 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. cd ..
  3. DSTDIR=packaging/build/linux
  4. export CXXFLAGS="-Wall -g0 -O3"
  5. autoreconf -i
  6. #make clean
  7. ./configure --enable-portable=yes
  8. result=$?
  9. if [ "$result" != 0 ]; then
  10. exit $result
  11. fi
  12. make -j16
  13. result=$?
  14. if [ "$result" != 0 ]; then
  15. exit $result
  16. fi
  17. if [ -e src/manaplus ];
  18. then
  19. strip src/manaplus
  20. rm -rf $DSTDIR
  21. mkdir -p $DSTDIR
  22. cp -r data $DSTDIR
  23. mkdir -p $DSTDIR/bin
  24. cp src/manaplus $DSTDIR/bin
  25. cp nightly/runme.sh $DSTDIR
  26. cp "nightly/run tests.sh" $DSTDIR
  27. cp nightly/evol.sh $DSTDIR
  28. fi