1#!/bin/bash 2 3PATH=/cygdrive/c/qt/2010.02.1/qt/bin:/cygdrive/c/qt/2010.02.1/mingw/bin/:$PATH 4if [ -z "$VERSION" ]; then 5 qmake glogg.pro -spec win32-g++ -r CONFIG+=release VERSION="$VERSION" 6else 7 qmake glogg.pro -spec win32-g++ -r CONFIG+=release 8fi 9mingw32-make 10cp /cygdrive/c/qt/2010.02.1/qt/bin/{QtCore4,QtGui4}.dll release/ 11cp /cygdrive/c/qt/2010.02.1/mingw/bin/{mingwm10,libgcc_s_dw2-1}.dll release/ 12if [ -z "$VERSION" ]; then 13 VERSION=`git describe`; 14fi 15echo Generating installer for glogg-$VERSION 16/cygdrive/c/Program\ Files/NSIS/makensis -DVERSION=$VERSION glogg.nsi 17