1#!/bin/bash 2 3# Build glogg for win32 using the cross-compiler 4 5QTXDIR=$HOME/qt-x-win32 6 7make clean 8if [ -z "$VERSION" ]; then 9 qmake glogg.pro -spec win32-x-g++ -r CONFIG+="release win32" VERSION="$VERSION" 10else 11 qmake glogg.pro -spec win32-x-g++ -r CONFIG+="release win32" 12fi 13make -j3 14cp $QTXDIR/qt_win/2010.02.1/qt/bin/{QtCore4,QtGui4}.dll release/ 15cp $QTXDIR/qt_win/2010.02.1/mingw/bin/libgcc_s_dw2-1.dll release/ 16gunzip -c /usr/share/doc/mingw32-runtime/mingwm10.dll.gz >release/mingwm10.dll 17if [ -z "$VERSION" ]; then 18 VERSION=`git describe`; 19fi 20echo Generating installer for glogg-$VERSION 21wine $QTXDIR/NSIS/makensis -DVERSION=$VERSION glogg.nsi 22