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