1d9e83e98SNicolas Bonnefon#!/bin/bash 2d9e83e98SNicolas Bonnefon 3*2f3d4448SNicolas BonnefonBOOSTDIR=$HOME/boost_1_43_0 4*2f3d4448SNicolas Bonnefon 5afcc2cb7SNicolas BonnefonPATH=/cygdrive/c/qt/2010.02.1/qt/bin:/cygdrive/c/qt/2010.02.1/mingw/bin/:$PATH 6f9fc179dSNicolas Bonnefonif [ -z "$VERSION" ]; then 721a1b6dcSNicolas Bonnefon echo "Building default version" 8*2f3d4448SNicolas Bonnefon qmake glogg.pro -spec win32-g++ -r CONFIG+=release BOOST_PATH=$BOOSTDIR 921a1b6dcSNicolas Bonnefonelse 1021a1b6dcSNicolas Bonnefon echo "Building version $VERSION" 11*2f3d4448SNicolas Bonnefon qmake glogg.pro -spec win32-g++ -r CONFIG+=release BOOST_PATH=$BOOSTDIR VERSION="$VERSION" 12f9fc179dSNicolas Bonnefonfi 13d9e83e98SNicolas Bonnefonmingw32-make 14afcc2cb7SNicolas Bonnefoncp /cygdrive/c/qt/2010.02.1/qt/bin/{QtCore4,QtGui4}.dll release/ 15da722d7bSNicolas Bonnefoncp /cygdrive/c/qt/2010.02.1/mingw/bin/{mingwm10,libgcc_s_dw2-1}.dll release/ 16f9fc179dSNicolas Bonnefonif [ -z "$VERSION" ]; then 17f9fc179dSNicolas Bonnefon VERSION=`git describe`; 18f9fc179dSNicolas Bonnefonfi 199a361c77SNicolas Bonnefonecho Generating installer for glogg-$VERSION 209a361c77SNicolas Bonnefon/cygdrive/c/Program\ Files/NSIS/makensis -DVERSION=$VERSION glogg.nsi 21