1#!/bin/bash 2 3PATH=/cygdrive/c/qt/2009.03/qt/bin:/cygdrive/c/qt/2009.03/mingw/bin/:$PATH 4qmake logcrawler.pro -spec win32-g++ -r CONFIG+=release 5mingw32-make 6cp /cygdrive/c/qt/2009.03/qt/bin/{QtCore4,QtGui4}.dll release/ 7cp /cygdrive/c/qt/2009.03/mingw/bin/{libexpat-1,mingwm10}.dll release/ 8VERSION=`git describe` 9echo Generating binary distribution for logcrawler-$VERSION 10rm logcrawler-$VERSION-win32.zip 11cd release 12zip -9 ../logcrawler-$VERSION-win32.zip *.dll *.exe 13echo Generating installer for logcrawler-$VERSION 14/cygdrive/c/Program\ Files/NSIS/makensis -DVERSION=$VERSION logcrawler.nsi 15