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 988B

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