Revision 9df7834d8973868bce8b8e874a3c9266809a9c8d authored by Ronny Lorenz on 04 May 2015, 13:37:29 UTC, committed by Ronny Lorenz on 04 May 2015, 13:37:29 UTC
1 parent c16df79
Raw File
make_windows_installer.sh
#!/bin/bash
#

WIN_INSTALLER_LOG=win_installer.log

export ac_cv_func_realloc_0_nonnull=yes
export ac_cv_func_malloc_0_nonnull=yes



case "$1" in

arch64) echo "Making Windows Installer using Arch Linux mingw-w64 installation"
              echo -ne "...making 32bit version..."
              ./configure --host=i686-w64-mingw32 --without-perl --without-forester --with-cluster &>> ${WIN_INSTALLER_LOG}
              make clean &>> ${WIN_INSTALLER_LOG}
              make &>> ${WIN_INSTALLER_LOG}
              makensis win_installer_archlinux_i686.nsi &>> ${WIN_INSTALLER_LOG}
              echo -ne " done\n"
              echo -ne "...making 64bit version..."
              ./configure --host=x86_64-w64-mingw32 --without-perl --without-forester --with-cluster &>> ${WIN_INSTALLER_LOG}
              make clean &>> ${WIN_INSTALLER_LOG}
              make &>> ${WIN_INSTALLER_LOG}
              makensis win_installer_archlinux_x86_64.nsi &>> ${WIN_INSTALLER_LOG}
              echo -ne " done\n"
              ;;

arch)         echo "Making Windows Installer using Arch Linux mingw32 installation of mingw"
              echo -ne "...making 32bit version..."
              ./configure --host=i486-mingw32 --without-perl --without-forester --with-cluster &>> ${WIN_INSTALLER_LOG}
              make clean &>> ${WIN_INSTALLER_LOG}
              make &>> ${WIN_INSTALLER_LOG}
              makensis win_installer_archlinux_i486.nsi &>> ${WIN_INSTALLER_LOG}
              echo -ne " done\n"
              ;;

*)            echo "Making Windows Installer using Fedora installation of mingw64"
              echo -ne "...making 32bit version..."
              mingw32-configure --without-perl --without-forester --with-cluster &>> ${WIN_INSTALLER_LOG}
              make clean  &>> ${WIN_INSTALLER_LOG}
              make &>> ${WIN_INSTALLER_LOG}
              makensis win_installer_fedora_i686.nsi >> ${WIN_INSTALLER_LOG}
              echo -ne " done\n"
              echo -ne "...making 64bit version..."
              mingw64-configure --without-perl --without-forester --with-cluster &>> ${WIN_INSTALLER_LOG}
              make clean  &>> ${WIN_INSTALLER_LOG}
              make &>> ${WIN_INSTALLER_LOG}
              makensis win_installer_fedora_x86_64.nsi &>> ${WIN_INSTALLER_LOG}
              echo -ne "done\n"
              ;;

esac


back to top