Simple command line calculator http://amath.innolan.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

buildwin 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/bin/sh
  2. #
  3. # This file is public domain
  4. #
  5. # Project homepage:
  6. # https://amath.innolan.net
  7. #
  8. set -e
  9. version="1.8.4"
  10. echo "Building amath ${version} for Windows ..."
  11. rm -f amath-${version}.zip
  12. rm -Rf amath
  13. rm -Rf dist
  14. mkdir dist
  15. ./configure --enable-test --cross-compile="i686-w64-mingw32" CFLAGS="-DWINDOWS" LDFLAGS="-static -static-libgcc -static-libstdc++"
  16. make clean
  17. make static
  18. mv amath dist/amath-${version}-x86.exe
  19. make clean
  20. ./configure --enable-test --cross-compile="x86_64-w64-mingw32" CFLAGS="-DWINDOWS" LDFLAGS="-static -static-libgcc -static-libstdc++"
  21. make static
  22. mv amath dist/amath-${version}-x64.exe
  23. make clean
  24. #cd dist
  25. #touch hashkeys.txt
  26. #sha1sum amath-${version}-x86.exe >>hashkeys.txt
  27. #sha1sum amath-${version}-x86.exe >>hashkeys.txt
  28. #sha256sum amath-${version}-x86.exe >>hashkeys.txt
  29. #sha256sum amath-${version}-x86.exe >>hashkeys.txt
  30. #cd ..
  31. tr '\n' '\r' <LICENSE >dist/license.txt
  32. tr '\n' '\r' <HISTORY >dist/changes.txt
  33. mkdir dist/script
  34. cp script/* dist/script/
  35. date -Ru >dist/build.txt
  36. mv dist amath
  37. zip -r amath-${version}.zip amath/*