Merge remote-tracking branch 'qemu-project/master'
[qemu/ar7.git] / make-installers-all
blob2eac934df12b59823755ee9331faf4224a86989b
1 #!/bin/bash
3 # Needs bash because of ${x/exe/sha} expression.
5 date=$(date +%Y%m%d)
6 year=$(date +%Y)
8 WEBDIR=/var/www/html
10 targets="i686-w64-mingw32 x86_64-w64-mingw32"
12 if false; then
14 echo Building i686-w64-mingw32...
15 mkdir -p /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/i686-w64-mingw32
16 cd /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/i686-w64-mingw32 && rm -rf *
17 ../../../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 -O -j4
19 make -C /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/i686-w64-mingw32 installer SIGNCODE=signcode
20 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
25 target=x86_64-w64-mingw32
27 echo Building $target...
28 rm -rf /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/$target
29 mkdir -p /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/$target
30 cd /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/$target
31 ../../../configure --cross-prefix=${target}- --disable-guest-agent-msi --disable-werror --enable-strip --extra-cflags="-I/mingw64/include" --extra-ldflags="-L/mingw64/lib"
32 make -O -j4
33 make -C /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/$target installer SIGNCODE=signcode
34 instdir=$WEBDIR/w64/$year
35 mkdir -p $instdir
36 mv -v /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/$target/qemu-setup-*.exe $instdir/qemu-w64-setup-$date.exe
38 echo Calculate SHA-512 checksums...
39 cd $instdir
40 sha512sum qemu-w64-setup-$date.exe >qemu-w64-setup-$date.sha512
41 cd ..
42 ln -sv $year/qemu-w64-setup-$date.* .
45 echo Update documentation...
46 cp -auv /home/stefan/src/qemu/repo.or.cz/qemu/ar7/bin/ndebug/x86_64-w64-mingw32/docs/manual/* /var/www/html/doc/latest/
48 echo Done.