3 # Needs bash because of ${x/exe/sha} expression.
9 targets
="i686-w64-mingw32 x86_64-w64-mingw32"
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"
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"
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})
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
/