makerelease 761 B

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