1
0
mirror of https://gitlab.com/rnger/amath synced 2025-10-06 02:49:59 +00:00
Files
amath/buildwin

42 lines
988 B
Plaintext
Raw Normal View History

2017-02-27 23:23:06 +01:00
#!/bin/sh
2017-03-11 23:37:45 +01:00
set -e
2017-07-14 12:10:13 +02:00
version="1.8.2"
2017-02-27 23:23:06 +01:00
echo "Building amath ${version} for Windows ..."
2017-03-11 23:37:45 +01:00
rm -f amath-${version}.zip
2017-02-27 23:23:06 +01:00
rm -Rf amath
rm -Rf dist
mkdir dist
2017-03-24 20:09:05 +01:00
./configure --enable-test --cross-compile="i686-w64-mingw32" CFLAGS="-DWINDOWS" LDFLAGS="-static -static-libgcc -static-libstdc++"
2017-03-11 23:37:45 +01:00
make clean
2017-02-27 23:23:06 +01:00
make static
mv amath dist/amath-${version}-x86.exe
make clean
2017-03-24 20:09:05 +01:00
./configure --enable-test --cross-compile="x86_64-w64-mingw32" CFLAGS="-DWINDOWS" LDFLAGS="-static -static-libgcc -static-libstdc++"
2017-02-27 23:23:06 +01:00
make static
mv amath dist/amath-${version}-x64.exe
make clean
2017-04-13 00:50:51 +02:00
#cd dist
#touch hashkeys.txt
#sha1sum amath-${version}-x86.exe >>hashkeys.txt
#sha1sum amath-${version}-x86.exe >>hashkeys.txt
#sha256sum amath-${version}-x86.exe >>hashkeys.txt
#sha256sum amath-${version}-x86.exe >>hashkeys.txt
#cd ..
2017-02-27 23:23:06 +01:00
2017-04-13 00:50:51 +02:00
tr '\n' '\r' <LICENSE >dist/license.txt
tr '\n' '\r' <HISTORY >dist/changes.txt
2017-02-27 23:23:06 +01:00
mkdir dist/script
cp script/* dist/script/
2017-04-13 00:50:51 +02:00
date -Ru >dist/build.txt
2017-02-27 23:23:06 +01:00
mv dist amath
zip -r amath-${version}.zip amath/*