1#!/bin/bash 2 3PATH=/cygdrive/c/qt/2009.03/qt/bin:/cygdrive/c/qt/2009.03/mingw/bin/:$PATH 4qmake glogg.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 glogg-$VERSION 10rm glogg-$VERSION-win32.zip 11cd release 12zip -9 ../glogg-$VERSION-win32.zip *.dll *.exe 13cd .. 14echo Generating installer for glogg-$VERSION 15/cygdrive/c/Program\ Files/NSIS/makensis -DVERSION=$VERSION glogg.nsi 16