Merge tag 'v8.0.0'
[qemu/ar7.git] / make-installers-all
blobe4321c941c9d8ab2318b8a9ef35003818a1e3b74
1 #!/bin/bash
3 # Needs bash because of ${x/exe/sha} expression.
5 date=$(date +%Y%m%d)
7 WEBDIR=/var/www/html
9 targets="i686-w64-mingw32 x86_64-w64-mingw32"
11 if false; then
13 echo Building i686-w64-mingw32...
14 mkdir -p /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/i686-w64-mingw32
15 cd /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/i686-w64-mingw32 && rm -rf *
16 ../../../configure --cross-prefix=i686-w64-mingw32- --disable-guest-agent-msi --disable-werror --enable-strip --extra-cflags="-I/mingw32/include" --extra-ldflags="-L/mingw32/lib"
17 make -O -j4
18 make -C /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/i686-w64-mingw32 installer SIGNCODE=signcode
19 mv /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/i686-w64-mingw32/qemu-setup-*.exe $WEBDIR/w32/qemu-w32-setup-$date.exe
24 target=x86_64-w64-mingw32
25 echo Building $target...
26 rm -rf /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/$target
27 mkdir -p /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/$target
28 cd /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/$target
29 ../../../configure --cross-prefix=${target}- --disable-guest-agent-msi --disable-werror --enable-strip --extra-cflags="-I/mingw64/include" --extra-ldflags="-L/mingw64/lib"
30 make -O -j4
31 make -C /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/$target installer SIGNCODE=signcode
32 mv /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/$target/qemu-setup-*.exe $WEBDIR/w64/qemu-w64-setup-$date.exe
35 echo Calculate SHA-512 checksums...
36 for exe in $WEBDIR/w*/qemu-w*-setup-$date.exe; do
37 (cd $(dirname $exe); x=$(basename $exe); sha512sum $x >${x/exe/sha512})
38 done
40 echo Update documentation...
41 cp -auv /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/x86_64-w64-mingw32/docs/manual/* /var/www/html/doc/latest/
43 echo Done.