makerelease 828 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/sh -e
  2. if [ -z "$ANDROID_HOME" ]; then
  3. echo 'No $ANDROID_HOME specified.'
  4. exit 1
  5. fi
  6. if [ -z "$NDK" ]; then
  7. echo 'No $NDK specified.'
  8. exit 1
  9. fi
  10. VERSION=$1
  11. PREV_VERSION=$2
  12. git checkout refs/tags/release-$VERSION
  13. git log --pretty=fuller --date=short refs/tags/release-$PREV_VERSION..HEAD > ChangeLog
  14. autoreconf -i
  15. ./configure && \
  16. make dist-bzip2 && make dist-gzip && make dist-xz || echo "error"
  17. make distclean
  18. # mingw 32bit
  19. export HOST=i686-w64-mingw32
  20. export LABEL=win-32bit
  21. ./mingw-config
  22. make -j8
  23. ./mingw-release
  24. make distclean
  25. # mingw 64bit
  26. export HOST=x86_64-w64-mingw32
  27. export LABEL=win-64bit
  28. ./mingw-config
  29. make -j8
  30. ./mingw-release
  31. make distclean
  32. # android
  33. ./android-config
  34. ./android-make -j8
  35. ./android-release
  36. make distclean
  37. # OSX builds are created separately using makerelease-osx.mk